D1: Workflow Commands & Environment Variables
GH-200 GitHub Actions exam practice questions · 11 flashcards
Question
env: levels?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Workflow Commands & Environment Variables practice questions and answers
- env: levels?Workflow, job, step level; narrower scope overrides.
- Default environment variables?GITHUB_SHA, GITHUB_REF, GITHUB_REPOSITORY, GITHUB_WORKSPACE, RUNNER_OS, GITHUB_RUN_ID, CI=true.
- Setting env var for later steps?echo "NAME=value" >> "$GITHUB_ENV".
- Setting step output?echo "name=value" >> "$GITHUB_OUTPUT".
- Adding to PATH?echo "/path" >> "$GITHUB_PATH".
- Masking a value?echo "::add-mask::$VALUE".
- Annotations?::error file=x,line=1::msg, ::warning::, ::notice:: create annotations.
- Grouping log lines?::group::Title ... ::endgroup::.
- Debug logging?::debug:: messages shown when ACTIONS_STEP_DEBUG secret/variable is true.
- Deprecated set-output/set-env?Replaced by GITHUB_OUTPUT and GITHUB_ENV files.
- Stop processing commands?::stop-commands::token to prevent untrusted output being interpreted.