mirror of
https://github.com/FranzDiebold/github-env-vars-action.git
synced 2025-01-03 21:04:50 -05:00
Add example for env var from another env var.
This commit is contained in:
parent
c45f5fb0ac
commit
99157666b2
1 changed files with 8 additions and 0 deletions
8
.github/workflows/demo.yml
vendored
8
.github/workflows/demo.yml
vendored
|
@ -47,6 +47,14 @@ jobs:
|
|||
echo "GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER"
|
||||
echo "GITHUB_WORKFLOW=$GITHUB_WORKFLOW"
|
||||
echo "GITHUB_ACTION=$GITHUB_ACTION"
|
||||
- name: Set env value from another env.
|
||||
run: |
|
||||
echo "Let's output my env vars:"
|
||||
echo "MY_GIT_SHA=$MY_GIT_SHA"
|
||||
echo "MY_GIT_REF=$MY_GIT_REF"
|
||||
env:
|
||||
MY_GIT_SHA: "${{ env.CI_SHA_SHORT }}"
|
||||
MY_GIT_REF: "${{ env.CI_REF_NAME }}"
|
||||
|
||||
windows:
|
||||
name: Windows Demo
|
||||
|
|
Loading…
Reference in a new issue