Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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