Workflow YAML, triggers, jobs, runners, secrets, caching, matrix builds, artifacts and reusable workflows.
35 cards · basic cards · AI-written, checked twice. Edit anything.
- Where must workflow files be located in a GitHub repository?
Show answer
.github/workflows/ directory
- What is the file extension for a GitHub Actions workflow?
Show answer
.yml or .yaml
- Which top-level keyword defines the list of jobs in a workflow?
Show answer
jobs
- What does the 'on' keyword specify in a workflow file?
Show answer
The events that trigger the workflow
- Which trigger event fires when code is pushed to a branch?
Show answer
push
- Which trigger event fires when a pull request is opened or updated?
Show answer
pull_request
- What trigger event allows a workflow to run on a cron schedule?
Show answer
schedule
- Which trigger allows manual workflow execution from the Actions tab?
Show answer
workflow_dispatch
- What keyword specifies the machine type where a job runs?
Show answer
runs-on
- Name three default GitHub-hosted runner operating systems.
Show answer
ubuntu-latest, windows-latest, macos-latest
- What type of runner is self-managed and runs on your own hardware?
Show answer
self-hosted runner
- What keyword defines the ordered list of commands or actions in a job?
Show answer
steps
- Which keyword in a step executes a command directly on the runner?
Show answer
run
- Which keyword in a step references an action from the marketplace?
Show answer
uses
- What is the most common action used to access the repository code?
Show answer
actions/checkout