Intermediate Reading #github-actions #ci-cd #yaml #devops

Reading CI/CD Config Files

5 exercises on reading GitHub Actions workflow YAML: event triggers, build matrices, reusable actions, environment variable scoping, and job dependency chains.

GitHub Actions YAML quick reference
  • on: — lists all triggers (push, pull_request, schedule, workflow_dispatch)
  • jobs: — parallel units of work; each runs on its own runner
  • needs: — declares a dependency; the job waits for listed jobs to succeed
  • strategy.matrix: — creates a run for every combination of values
  • uses: — invokes a reusable action; run: executes a shell command
  • env: — environment variables; workflow > job > step scope (inner wins)
0 / 5 completed
1 / 5

Read this GitHub Actions workflow excerpt and answer the question:

on:
  push:
    branches: [main, release/*]
  pull_request:
    branches: [main]
  schedule:
    - cron: '0 6 * * 1'
Which event triggers the workflow on a Monday morning at 06:00 UTC?