D2: Reading & Predicting Workflow Behavior
GH-200 GitHub Actions exam practice questions · 10 flashcards
Question
on: push branches: [main] paths: ['src/**']?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Reading & Predicting Workflow Behavior practice questions and answers
- on: push branches: [main] paths: ['src/**']?Runs only for pushes to main that change files under src/.
- on: pull_request branches: [main]?Runs for PRs targeting main (base branch filter).
- if: github.event_name == 'push'?Step/job runs only for push events.
- needs: [build, test] with build skipped?Dependent job is skipped unless if: always()/!cancelled() used.
- concurrency: group: ${{ github.ref }}?One run per branch at a time.
- schedule cron '0 0 * * 1'?Every Monday at 00:00 UTC.
- on: release types: [published]?Runs when a release is published.
- workflow_run with workflows: [CI] types: [completed]?Runs after CI workflow finishes.
- tags: ['v*']?Runs on pushing tags starting with v.
- Why did workflow on a feature branch not run on schedule?Scheduled workflows run only from the default branch.