nerdexam
GitHub

GITHUB-ACTIONS · Question #7

As a developer, you are designing a workflow and need to communicate with the runner machine to set environment variables, output values used by other actions, add debug messages to the output logs, a

The correct answer is B. workflow commands. Workflow commands are special commands that allow you to interact with the runner, set environment variables, output values, add debug messages, and perform other tasks within the workflow. These commands are used to modify the environment or influence the behavior of the GitHub

Author and maintain workflows

Question

As a developer, you are designing a workflow and need to communicate with the runner machine to set environment variables, output values used by other actions, add debug messages to the output logs, and other tasks. Which of the following options should you use?

Options

  • Aenvironment variables
  • Bworkflow commands
  • Cself-hosted runners
  • Denable debug logging
  • Ecomposite run step

How the community answered

(46 responses)
  • B
    91% (42)
  • C
    2% (1)
  • D
    4% (2)
  • E
    2% (1)

Explanation

Workflow commands are special commands that allow you to interact with the runner, set environment variables, output values, add debug messages, and perform other tasks within the workflow. These commands are used to modify the environment or influence the behavior of the GitHub Actions runner.

Topics

#workflow commands#runner communication#environment variables#debug logging

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice