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

Rapid-fire: five expressions you will write every week.

IntermediateConceptRapid-fire Commands & Syntax
Answer
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/v')
if: contains(github.event.pull_request.labels.*.name, 'run-e2e')
key: deps-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
matrix: ${{ fromJSON(needs.plan.outputs.matrix) }}
All GitHub Actions questions Roadmap: GitHub Actions

More on Rapid-fire Commands & Syntax