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

Rapid-fire: workflow commands you should know.

BeginnerConceptRapid-fire Commands & Syntax
Answer
echo "::group::Install"; npm ci; echo "::endgroup::"
echo "::notice title=Deploy::Deployed to staging"
echo "::warning file=app.js,line=12::Deprecated API"
echo "::error file=src/a.ts,line=3,col=5::Type error"
echo "::add-mask::$VALUE"
echo "::debug::Only visible with ACTIONS_STEP_DEBUG"
token=$(openssl rand -hex 8); echo "::stop-commands::$token"; cat untrusted.log; echo "::$token::"

stop-commands prevents untrusted output from being interpreted as workflow commands.

All GitHub Actions questions Roadmap: GitHub Actions

More on Rapid-fire Commands & Syntax