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

Commit

Permalink
Insert new needed GitHub variables GITHUB_RUN_ID and GITHUB_RUN_NUMBER
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Bonafonte committed Mar 20, 2020
1 parent 3180365 commit 5a15c10
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
16 changes: 14 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1493,15 +1493,27 @@ async function insertEnvVariables(file, target) {
file,
target
);
await insertEnvVariable(
"SCOPE_SOURCE_ROOT",
envVars["GITHUB_WORKSPACE"] || "",
file,
target
);
await insertEnvVariable(
"GITHUB_REPOSITORY",
envVars["GITHUB_REPOSITORY"] || "",
file,
target
);
await insertEnvVariable(
"SCOPE_SOURCE_ROOT",
envVars["GITHUB_WORKSPACE"] || "",
"GITHUB_RUN_ID",
envVars["GITHUB_RUN_ID"] || "",
file,
target
);
await insertEnvVariable(
"GITHUB_RUN_NUMBER",
envVars["GITHUB_RUN_NUMBER"] || "",
file,
target
);
Expand Down
16 changes: 14 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,15 +552,27 @@ async function insertEnvVariables(file, target) {
file,
target
);
await insertEnvVariable(
"SCOPE_SOURCE_ROOT",
envVars["GITHUB_WORKSPACE"] || "",
file,
target
);
await insertEnvVariable(
"GITHUB_REPOSITORY",
envVars["GITHUB_REPOSITORY"] || "",
file,
target
);
await insertEnvVariable(
"SCOPE_SOURCE_ROOT",
envVars["GITHUB_WORKSPACE"] || "",
"GITHUB_RUN_ID",
envVars["GITHUB_RUN_ID"] || "",
file,
target
);
await insertEnvVariable(
"GITHUB_RUN_NUMBER",
envVars["GITHUB_RUN_NUMBER"] || "",
file,
target
);
Expand Down

0 comments on commit 5a15c10

Please sign in to comment.