D1: Workflow Triggers & Events
GH-200 GitHub Actions exam practice questions · 12 flashcards
Question
Where do workflow files live?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 Workflow Triggers & Events practice questions and answers
- Where do workflow files live?.github/workflows/*.yml or *.yaml in the repository.
- on: push with filters?branches, branches-ignore, tags, paths, paths-ignore limit when push triggers.
- on: pull_request activity types?opened, synchronize, reopened by default; others like labeled, closed via types:.
- pull_request vs pull_request_target?pull_request runs in PR merge context with read token for forks; pull_request_target runs in base repo context with secrets — dangerous with untrusted code.
- on: schedule?POSIX cron in UTC; runs on default branch; minimum interval 5 minutes.
- on: workflow_dispatch?Manual trigger from UI/API/CLI with optional inputs.
- on: repository_dispatch?Webhook trigger via API with custom event_type and client_payload.
- on: workflow_run?Trigger after another workflow completes/requested.
- on: workflow_call?Makes a workflow reusable by other workflows.
- Other repository events?issues, issue_comment, release, create, delete, label, discussion, merge_group, deployment_status.
- Multiple events?on: [push, pull_request] or mapping form with filters per event.
- Scheduled workflow disabled after inactivity?Public repo scheduled workflows auto-disable after 60 days without repo activity.