Releases: gha-trigger/set-env-action
v0.1.3
v0.1.2
Issues | Pull Requests | v0.1.1...v0.1.2
Bug Fixes
#13 Fix GHA_REF_NAME if an event is pull_request
Others
#13 Set up CI
v0.1.1
Issues | Pull Requests | v0.1.0...v0.1.1
Features
#12 Add GHA_ENV
GHA_ENV: a file path to a shell script to override GitHub Actions default environment variables with GHA_*
Basically, GitHub Actions default environment variables can't be changed.
When you set a custom environment variable, you cannot use any of the default environment variable names.
For a complete list of these, see "Default environment variables" below.
If you attempt to override the value of one of these default environment variables, the assignment is ignored.
But you can change them inrun
steps.
Using GHA_ENV
in run
step, you can override GitHub Actions default environment variables.
e.g.
- run: |
echo "$GITHUB_REPOSITORY" # CI Repository
. "$GHA_ENV" # Override default environment variables GITHUB_*
echo "$GITHUB_REPOSITORY" # Main Repository
This is useful to run tools that depend on GitHub Actions default environment variables.
v0.1.0
Issues | Pull Requests | 4ae2613...v0.1.0
First release.