GitHub
GITHUB-ACTIONS · Question #43
Which keyword allows you to define environment variables in a GitHub Actions workflow?
The correct answer is A. env. In GitHub Actions workflows, you use the env keyword to define custom environment variables at various scopes (workflow, job, or step) within your YAML file.
GitHub Actions - Workflow Syntax
Question
Which keyword allows you to define environment variables in a GitHub Actions workflow?
Options
- Aenv
- Bsecrets
- Cconfig
- Dvars
How the community answered
(58 responses)- A93% (54)
- B2% (1)
- C2% (1)
- D3% (2)
Explanation
In GitHub Actions workflows, you use the env keyword to define custom environment variables at various scopes (workflow, job, or step) within your YAML file.
Topics
#environment variables#workflow syntax#env keyword
Community Discussion
No community discussion yet for this question.