name: Steps and Outputs #9
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
name: Using ENV global, job and step | |
# using ENV variables in different locations Global, Job and Step | |
on: ['push'] | |
env: | |
globalEnvDay: Monday | |
jobs: | |
usingEnvVariables: | |
runs-on: ubuntu-latest | |
env: | |
jobEnvDay: "Tuesday" | |
steps: | |
- name: Exporting Var | |
env: | |
stepEnvDay: "Webnesday" | |
run: | | |
echo "Firt Day: $globalEnvDay" | |
echo "Second Day: $jobEnvDay" | |
echo "Firt Day: $stepEnvDay" |