GitHub
GITHUB-ACTIONS · Question #51
Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?
Sign in or unlock GITHUB-ACTIONS to reveal the answer and full explanation for question #51. The question stem and answer options stay visible for context.
GitHub Actions - Workflow Commands
Question
Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?
Options
- Arun: echo "::set-env name=FOO::bar"
- Brun: echo "FOO=bar" >> $GITHUB_ENV
- Crun: echo ${{ $FOO=bar }}
- Drun: export FOO=bar
Unlock GITHUB-ACTIONS to see the answer
You've previewed enough free GITHUB-ACTIONS questions. Unlock GITHUB-ACTIONS for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#environment variables#GITHUB_ENV#workflow commands#step outputs