Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

Commit 5a15c10

Browse files
author
Ignacio Bonafonte
committed
Insert new needed GitHub variables GITHUB_RUN_ID and GITHUB_RUN_NUMBER
1 parent 3180365 commit 5a15c10

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

dist/index.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,15 +1493,27 @@ async function insertEnvVariables(file, target) {
14931493
file,
14941494
target
14951495
);
1496+
await insertEnvVariable(
1497+
"SCOPE_SOURCE_ROOT",
1498+
envVars["GITHUB_WORKSPACE"] || "",
1499+
file,
1500+
target
1501+
);
14961502
await insertEnvVariable(
14971503
"GITHUB_REPOSITORY",
14981504
envVars["GITHUB_REPOSITORY"] || "",
14991505
file,
15001506
target
15011507
);
15021508
await insertEnvVariable(
1503-
"SCOPE_SOURCE_ROOT",
1504-
envVars["GITHUB_WORKSPACE"] || "",
1509+
"GITHUB_RUN_ID",
1510+
envVars["GITHUB_RUN_ID"] || "",
1511+
file,
1512+
target
1513+
);
1514+
await insertEnvVariable(
1515+
"GITHUB_RUN_NUMBER",
1516+
envVars["GITHUB_RUN_NUMBER"] || "",
15051517
file,
15061518
target
15071519
);

index.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,15 +552,27 @@ async function insertEnvVariables(file, target) {
552552
file,
553553
target
554554
);
555+
await insertEnvVariable(
556+
"SCOPE_SOURCE_ROOT",
557+
envVars["GITHUB_WORKSPACE"] || "",
558+
file,
559+
target
560+
);
555561
await insertEnvVariable(
556562
"GITHUB_REPOSITORY",
557563
envVars["GITHUB_REPOSITORY"] || "",
558564
file,
559565
target
560566
);
561567
await insertEnvVariable(
562-
"SCOPE_SOURCE_ROOT",
563-
envVars["GITHUB_WORKSPACE"] || "",
568+
"GITHUB_RUN_ID",
569+
envVars["GITHUB_RUN_ID"] || "",
570+
file,
571+
target
572+
);
573+
await insertEnvVariable(
574+
"GITHUB_RUN_NUMBER",
575+
envVars["GITHUB_RUN_NUMBER"] || "",
564576
file,
565577
target
566578
);

0 commit comments

Comments
 (0)