-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple inputs from default GitHub env vars
Instead of reading built-in GitHub environment variables directly, the caller must map these to environment variables defined explicitly for this plugin. This will allow us to use modified input parameters in GitHub Actions without overriding these built-in environment variable.
- Loading branch information
Showing
6 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/sh | ||
|
||
export GITHUB_JOB_ID="42" | ||
export GITHUB_JOB_CORRELATOR="plugin-self-test" | ||
export GITHUB_REF="refs/heads/main" | ||
export GITHUB_SHA=$( git rev-parse HEAD ) | ||
export GITHUB_WORKSPACE=$( pwd ) | ||
export GITHUB_DEPENDENCY_GRAPH_JOB_ID="42" | ||
export GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR="plugin-self-test" | ||
export GITHUB_DEPENDENCY_GRAPH_REF="refs/heads/main" | ||
export GITHUB_DEPENDENCY_GRAPH_SHA=$( git rev-parse HEAD ) | ||
export GITHUB_DEPENDENCY_GRAPH_WORKSPACE=$( pwd ) | ||
|
||
./plugin-self-test $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters