Interview Prep/GitHub Actions/Rapid-fire Commands & Syntax

Rapid-fire: environment files.

BeginnerConceptRapid-fire Commands & Syntax
Answer
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"   # step output
echo "TAG=sha-${GITHUB_SHA::7}" >> "$GITHUB_ENV"   # env for later steps
echo "$HOME/bin" >> "$GITHUB_PATH"          # PATH for later steps
echo "| env | digest |" >> "$GITHUB_STEP_SUMMARY"
echo "tmpdir=$d" >> "$GITHUB_STATE"         # main to post script (JS actions)
All GitHub Actions questions Roadmap: GitHub Actions

More on Rapid-fire Commands & Syntax