GitHub
GITHUB-ACTIONS · Question #51
GITHUB-ACTIONS Question #51: Real Exam Question with Answer & Explanation
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.
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.