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?
- A. composite run step
- B. enable debug logging
- C. self-hosted runners
- D. environment variables
- E. workflow commands Correct
Explanation
Workflow commands are how actions and run steps communicate with the runner machine to set environment variables, set output values used by other actions, add debug messages to the logs and perform similar tasks. Enabling debug logging only makes extra log output visible, environment variables are just values, and composite steps and self-hosted runners do not provide a channel to the runner.