@ -127068,117 +127068,7 @@ GlobSync.prototype._makeAbs = function (f) {
/***/ } ) ,
/***/ 69042 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . NoFileOptions = exports . Inputs = void 0 ;
/* eslint-disable no-unused-vars */
var Inputs ;
( function ( Inputs ) {
Inputs [ "Name" ] = "name" ;
Inputs [ "Path" ] = "path" ;
Inputs [ "IfNoFilesFound" ] = "if-no-files-found" ;
Inputs [ "RetentionDays" ] = "retention-days" ;
Inputs [ "CompressionLevel" ] = "compression-level" ;
Inputs [ "Overwrite" ] = "overwrite" ;
} ) ( Inputs = exports . Inputs || ( exports . Inputs = { } ) ) ;
var NoFileOptions ;
( function ( NoFileOptions ) {
/ * *
* Default . Output a warning but do not fail the action
* /
NoFileOptions [ "warn" ] = "warn" ;
/ * *
* Fail the action with an error message
* /
NoFileOptions [ "error" ] = "error" ;
/ * *
* Do not output any warnings or errors , the action does not fail
* /
NoFileOptions [ "ignore" ] = "ignore" ;
} ) ( NoFileOptions = exports . NoFileOptions || ( exports . NoFileOptions = { } ) ) ;
/***/ } ) ,
/***/ 46455 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
var desc = Object . getOwnPropertyDescriptor ( m , k ) ;
if ( ! desc || ( "get" in desc ? ! m . _ _esModule : desc . writable || desc . configurable ) ) {
desc = { enumerable : true , get : function ( ) { return m [ k ] ; } } ;
}
Object . defineProperty ( o , k2 , desc ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getInputs = void 0 ;
const core = _ _importStar ( _ _nccwpck _require _ _ ( 42186 ) ) ;
const constants _1 = _ _nccwpck _require _ _ ( 69042 ) ;
/ * *
* Helper to get all the inputs for the action
* /
function getInputs ( ) {
const name = core . getInput ( constants _1 . Inputs . Name ) ;
const path = core . getInput ( constants _1 . Inputs . Path , { required : true } ) ;
const overwrite = core . getBooleanInput ( constants _1 . Inputs . Overwrite ) ;
const ifNoFilesFound = core . getInput ( constants _1 . Inputs . IfNoFilesFound ) ;
const noFileBehavior = constants _1 . NoFileOptions [ ifNoFilesFound ] ;
if ( ! noFileBehavior ) {
core . setFailed ( ` Unrecognized ${ constants _1 . Inputs . IfNoFilesFound } input. Provided: ${ ifNoFilesFound } . Available options: ${ Object . keys ( constants _1 . NoFileOptions ) } ` ) ;
}
const inputs = {
artifactName : name ,
searchPath : path ,
ifNoFilesFound : noFileBehavior ,
overwrite : overwrite
} ;
const retentionDaysStr = core . getInput ( constants _1 . Inputs . RetentionDays ) ;
if ( retentionDaysStr ) {
inputs . retentionDays = parseInt ( retentionDaysStr ) ;
if ( isNaN ( inputs . retentionDays ) ) {
core . setFailed ( 'Invalid retention-days' ) ;
}
}
const compressionLevelStr = core . getInput ( constants _1 . Inputs . CompressionLevel ) ;
if ( compressionLevelStr ) {
inputs . compressionLevel = parseInt ( compressionLevelStr ) ;
if ( isNaN ( inputs . compressionLevel ) ) {
core . setFailed ( 'Invalid compression-level' ) ;
}
if ( inputs . compressionLevel < 0 || inputs . compressionLevel > 9 ) {
core . setFailed ( 'Invalid compression-level. Valid values are 0-9' ) ;
}
}
return inputs ;
}
exports . getInputs = getInputs ;
/***/ } ) ,
/***/ 13930 :
/***/ 8725 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
@ -127346,7 +127236,7 @@ exports.findFilesToUpload = findFilesToUpload;
/***/ } ) ,
/***/ 10334 :
/***/ 56680 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
@ -127383,13 +127273,223 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
var _ _importDefault = ( this && this . _ _importDefault ) || function ( mod ) {
return ( mod && mod . _ _esModule ) ? mod : { "default" : mod } ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . uploadArtifact = void 0 ;
const core = _ _importStar ( _ _nccwpck _require _ _ ( 42186 ) ) ;
const github = _ _importStar ( _ _nccwpck _require _ _ ( 95438 ) ) ;
const artifact _1 = _ _importDefault ( _ _nccwpck _require _ _ ( 79450 ) ) ;
function uploadArtifact ( artifactName , filesToUpload , rootDirectory , options ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const uploadResponse = yield artifact _1 . default . uploadArtifact ( artifactName , filesToUpload , rootDirectory , options ) ;
core . info ( ` Artifact ${ artifactName } has been successfully uploaded! Final size is ${ uploadResponse . size } bytes. Artifact ID is ${ uploadResponse . id } ` ) ;
core . setOutput ( 'artifact-id' , uploadResponse . id ) ;
const repository = github . context . repo ;
const artifactURL = ` ${ github . context . serverUrl } / ${ repository . owner } / ${ repository . repo } /actions/runs/ ${ github . context . runId } /artifacts/ ${ uploadResponse . id } ` ;
core . info ( ` Artifact download URL: ${ artifactURL } ` ) ;
core . setOutput ( 'artifact-url' , artifactURL ) ;
} ) ;
}
exports . uploadArtifact = uploadArtifact ;
/***/ } ) ,
/***/ 86154 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . NoFileOptions = exports . Inputs = void 0 ;
/* eslint-disable no-unused-vars */
var Inputs ;
( function ( Inputs ) {
Inputs [ "Name" ] = "name" ;
Inputs [ "Path" ] = "path" ;
Inputs [ "IfNoFilesFound" ] = "if-no-files-found" ;
Inputs [ "RetentionDays" ] = "retention-days" ;
Inputs [ "CompressionLevel" ] = "compression-level" ;
Inputs [ "Overwrite" ] = "overwrite" ;
} ) ( Inputs = exports . Inputs || ( exports . Inputs = { } ) ) ;
var NoFileOptions ;
( function ( NoFileOptions ) {
/ * *
* Default . Output a warning but do not fail the action
* /
NoFileOptions [ "warn" ] = "warn" ;
/ * *
* Fail the action with an error message
* /
NoFileOptions [ "error" ] = "error" ;
/ * *
* Do not output any warnings or errors , the action does not fail
* /
NoFileOptions [ "ignore" ] = "ignore" ;
} ) ( NoFileOptions = exports . NoFileOptions || ( exports . NoFileOptions = { } ) ) ;
/***/ } ) ,
/***/ 36664 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
var desc = Object . getOwnPropertyDescriptor ( m , k ) ;
if ( ! desc || ( "get" in desc ? ! m . _ _esModule : desc . writable || desc . configurable ) ) {
desc = { enumerable : true , get : function ( ) { return m [ k ] ; } } ;
}
Object . defineProperty ( o , k2 , desc ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const core = _ _importStar ( _ _nccwpck _require _ _ ( 42186 ) ) ;
const upload _artifact _1 = _ _nccwpck _require _ _ ( 18569 ) ;
( 0 , upload _artifact _1 . run ) ( ) . catch ( error => {
core . setFailed ( error . message ) ;
} ) ;
/***/ } ) ,
/***/ 67022 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
var desc = Object . getOwnPropertyDescriptor ( m , k ) ;
if ( ! desc || ( "get" in desc ? ! m . _ _esModule : desc . writable || desc . configurable ) ) {
desc = { enumerable : true , get : function ( ) { return m [ k ] ; } } ;
}
Object . defineProperty ( o , k2 , desc ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getInputs = void 0 ;
const core = _ _importStar ( _ _nccwpck _require _ _ ( 42186 ) ) ;
const constants _1 = _ _nccwpck _require _ _ ( 86154 ) ;
/ * *
* Helper to get all the inputs for the action
* /
function getInputs ( ) {
const name = core . getInput ( constants _1 . Inputs . Name ) ;
const path = core . getInput ( constants _1 . Inputs . Path , { required : true } ) ;
const overwrite = core . getBooleanInput ( constants _1 . Inputs . Overwrite ) ;
const ifNoFilesFound = core . getInput ( constants _1 . Inputs . IfNoFilesFound ) ;
const noFileBehavior = constants _1 . NoFileOptions [ ifNoFilesFound ] ;
if ( ! noFileBehavior ) {
core . setFailed ( ` Unrecognized ${ constants _1 . Inputs . IfNoFilesFound } input. Provided: ${ ifNoFilesFound } . Available options: ${ Object . keys ( constants _1 . NoFileOptions ) } ` ) ;
}
const inputs = {
artifactName : name ,
searchPath : path ,
ifNoFilesFound : noFileBehavior ,
overwrite : overwrite
} ;
const retentionDaysStr = core . getInput ( constants _1 . Inputs . RetentionDays ) ;
if ( retentionDaysStr ) {
inputs . retentionDays = parseInt ( retentionDaysStr ) ;
if ( isNaN ( inputs . retentionDays ) ) {
core . setFailed ( 'Invalid retention-days' ) ;
}
}
const compressionLevelStr = core . getInput ( constants _1 . Inputs . CompressionLevel ) ;
if ( compressionLevelStr ) {
inputs . compressionLevel = parseInt ( compressionLevelStr ) ;
if ( isNaN ( inputs . compressionLevel ) ) {
core . setFailed ( 'Invalid compression-level' ) ;
}
if ( inputs . compressionLevel < 0 || inputs . compressionLevel > 9 ) {
core . setFailed ( 'Invalid compression-level. Valid values are 0-9' ) ;
}
}
return inputs ;
}
exports . getInputs = getInputs ;
/***/ } ) ,
/***/ 18569 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
var desc = Object . getOwnPropertyDescriptor ( m , k ) ;
if ( ! desc || ( "get" in desc ? ! m . _ _esModule : desc . writable || desc . configurable ) ) {
desc = { enumerable : true , get : function ( ) { return m [ k ] ; } } ;
}
Object . defineProperty ( o , k2 , desc ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . run = void 0 ;
const core = _ _importStar ( _ _nccwpck _require _ _ ( 42186 ) ) ;
const artifact _1 = _ _importStar ( _ _nccwpck _require _ _ ( 79450 ) ) ;
const search _1 = _ _nccwpck _require _ _ ( 13930 ) ;
const input _helper _1 = _ _nccwpck _require _ _ ( 46455 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 69042 ) ;
const search _1 = _ _nccwpck _require _ _ ( 8725 ) ;
const input _helper _1 = _ _nccwpck _require _ _ ( 67022 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 86154 ) ;
const upload _artifact _1 = _ _nccwpck _require _ _ ( 56680 ) ;
function deleteArtifactIfExists ( artifactName ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
try {
@ -127407,55 +127507,44 @@ function deleteArtifactIfExists(artifactName) {
}
function run ( ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
try {
const inputs = ( 0 , input _helper _1 . getInputs ) ( ) ;
const searchResult = yield ( 0 , search _1 . findFilesToUpload ) ( inputs . searchPath ) ;
if ( searchResult . filesToUpload . length === 0 ) {
// No files were found, different use cases warrant different types of behavior if nothing is found
switch ( inputs . ifNoFilesFound ) {
case constants _1 . NoFileOptions . warn : {
core . warning ( ` No files were found with the provided path: ${ inputs . searchPath } . No artifacts will be uploaded. ` ) ;
break ;
}
case constants _1 . NoFileOptions . error : {
core . setFailed ( ` No files were found with the provided path: ${ inputs . searchPath } . No artifacts will be uploaded. ` ) ;
break ;
}
case constants _1 . NoFileOptions . ignore : {
core . info ( ` No files were found with the provided path: ${ inputs . searchPath } . No artifacts will be uploaded. ` ) ;
break ;
}
}
}
else {
const s = searchResult . filesToUpload . length === 1 ? '' : 's' ;
core . info ( ` With the provided path, there will be ${ searchResult . filesToUpload . length } file ${ s } uploaded ` ) ;
core . debug ( ` Root artifact directory is ${ searchResult . rootDirectory } ` ) ;
if ( inputs . overwrite ) {
yield deleteArtifactIfExists ( inputs . artifactName ) ;
const inputs = ( 0 , input _helper _1 . getInputs ) ( ) ;
const searchResult = yield ( 0 , search _1 . findFilesToUpload ) ( inputs . searchPath ) ;
if ( searchResult . filesToUpload . length === 0 ) {
// No files were found, different use cases warrant different types of behavior if nothing is found
switch ( inputs . ifNoFilesFound ) {
case constants _1 . NoFileOptions . warn : {
core . warning ( ` No files were found with the provided path: ${ inputs . searchPath } . No artifacts will be uploaded. ` ) ;
break ;
}
const options = { } ;
if ( inputs . retentionDays ) {
options . retentionDays = inputs . retentionDays ;
case constants _1 . NoFileOptions . error : {
core . setFailed ( ` No files were found with the provided path: ${ inputs . searchPath } . No artifacts will be uploaded. ` ) ;
break ;
}
if ( typeof inputs . compressionLevel !== 'undefined' ) {
options . compressionLevel = inputs . compressionLevel ;
case constants _1 . NoFileOptions . ignore : {
core . info ( ` No files were found with the provided path: ${ inputs . searchPath } . No artifacts will be uploaded. ` ) ;
break ;
}
const uploadResponse = yield artifact _1 . default . uploadArtifact ( inputs . artifactName , searchResult . filesToUpload , searchResult . rootDirectory , options ) ;
core . info ( ` Artifact ${ inputs . artifactName } has been successfully uploaded! Final size is ${ uploadResponse . size } bytes. Artifact ID is ${ uploadResponse . id } ` ) ;
core . setOutput ( 'artifact-id' , uploadResponse . id ) ;
const repository = github . context . repo ;
const artifactURL = ` ${ github . context . serverUrl } / ${ repository . owner } / ${ repository . repo } /actions/runs/ ${ github . context . runId } /artifacts/ ${ uploadResponse . id } ` ;
core . info ( ` Artifact download URL: ${ artifactURL } ` ) ;
core . setOutput ( 'artifact-url' , artifactURL ) ;
}
}
catch ( error ) {
core . setFailed ( error . message ) ;
else {
const s = searchResult . filesToUpload . length === 1 ? '' : 's' ;
core . info ( ` With the provided path, there will be ${ searchResult . filesToUpload . length } file ${ s } uploaded ` ) ;
core . debug ( ` Root artifact directory is ${ searchResult . rootDirectory } ` ) ;
if ( inputs . overwrite ) {
yield deleteArtifactIfExists ( inputs . artifactName ) ;
}
const options = { } ;
if ( inputs . retentionDays ) {
options . retentionDays = inputs . retentionDays ;
}
if ( typeof inputs . compressionLevel !== 'undefined' ) {
options . compressionLevel = inputs . compressionLevel ;
}
yield ( 0 , upload _artifact _1 . uploadArtifact ) ( inputs . artifactName , searchResult . filesToUpload , searchResult . rootDirectory , options ) ;
}
} ) ;
}
run ( ) ;
exports. run = run ;
/***/ } ) ,
@ -129409,7 +129498,7 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module is referenced by other modules so it can't be inlined
/******/ var _ _webpack _exports _ _ = _ _nccwpck _require _ _ ( 103 34) ;
/******/ var _ _webpack _exports _ _ = _ _nccwpck _require _ _ ( 3666 4) ;
/******/ module . exports = _ _webpack _exports _ _ ;
/******/
/******/ } ) ( )