@@ -13189,7 +13189,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
1318913189} ;
1319013190Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
1319113191const core = __importStar ( __webpack_require__ ( 310 ) ) ;
13192- const executor = __importStar ( __webpack_require__ ( 826 ) ) ;
13192+ const executor_1 = __webpack_require__ ( 826 ) ;
1319313193const exec = __importStar ( __webpack_require__ ( 230 ) ) ;
1319413194function run ( ) {
1319513195 return __awaiter ( this , void 0 , void 0 , function * ( ) {
@@ -13198,7 +13198,7 @@ function run() {
1319813198 core . exportVariable ( "SCOPE_DSN" , dsn ) ;
1319913199 let executeTestPhase = core . getInput ( "run-tests" , { required : true } ) ;
1320013200 let command = core . getInput ( "command" , { required : true } ) ;
13201- yield executor . instrument ( false ) ;
13201+ yield executor_1 . instrument ( false ) ;
1320213202 if ( executeTestPhase == "true" ) {
1320313203 yield exec . exec ( "sh -c \"" + command + " --init-script initscope.gradle\"" ) ;
1320413204 }
@@ -13377,11 +13377,11 @@ function instrument(allowBeta) {
1337713377 return __awaiter ( this , void 0 , void 0 , function * ( ) {
1337813378 const workdir = process . cwd ( ) ;
1337913379 const [ agentVersion , pluginVersion , instrVersion ] = yield Promise . all ( [ version_parser_1 . getVersionToUse ( scopeAgentMetadataURL , allowBeta ) , version_parser_1 . getVersionToUse ( scopeGradlePluginMetadataURL , false ) , version_parser_1 . getVersionToUse ( scopeGradleInstrMetadataURL , false ) ] ) ;
13380- const gradleInstrumentatorPath = yield tc . downloadTool ( " https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-instrumentation-for-gradle/" + instrVersion + " /scope-instrumentation-for-gradle-" + instrVersion + " .jar" ) ;
13380+ const gradleInstrumentatorPath = yield tc . downloadTool ( ` https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-instrumentation-for-gradle/${ instrVersion } /scope-instrumentation-for-gradle-${ instrVersion } .jar` ) ;
1338113381 if ( ! gradleInstrumentatorPath . endsWith ( ".jar" ) ) {
1338213382 yield io . mv ( gradleInstrumentatorPath , gradleInstrumentatorPath + ".jar" ) ;
1338313383 }
13384- yield exec . exec ( " sh -c \ "java -jar " + gradleInstrumentatorPath + " .jar " + pluginVersion + " " + agentVersion + " " + workdir + " \"" ) ;
13384+ yield exec . exec ( ` sh -c "java -jar ${ gradleInstrumentatorPath } .jar ${ pluginVersion } ${ agentVersion } ${ workdir } "` ) ;
1338513385 } ) ;
1338613386}
1338713387exports . instrument = instrument ;
0 commit comments