nerdexam
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)
  • A
    93% (54)
  • B
    2% (1)
  • C
    2% (1)
  • D
    3% (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.

Full GITHUB-ACTIONS Practice