Skip to content
Latchkey

GitHub Actions Triggers Cheat Sheet: Events & Filters

Every workflow trigger and filter you configure under on:, in one reference.

Events, activity types, and the path/branch filters that control when workflows run.

Common events

EventFires on
pushCommits pushed to a ref
pull_requestPR activity (fork = no secrets)
pull_request_targetPR event, base-repo context
workflow_dispatchManual run with inputs
scheduleCron (UTC, default branch only)
workflow_callCalled as reusable workflow
releaseRelease published/created
issue_commentComment on issue/PR

Activity types

Event:typeMeaning
pull_request: [opened, synchronize]New PR or new push
pull_request: [closed]Merged or closed
release: [published]Release goes public
issues: [labeled]Label added

Filters

.github/workflows/ci.yml
on:
  push:
    branches: [main, 'release/**']
    tags: ['v*']
    paths: ['src/**', '!**/*.md']
  pull_request:
    branches-ignore: [experimental]
    paths-ignore: ['docs/**']

Manual inputs

workflow_dispatch
on:
  workflow_dispatch:
    inputs:
      env:
        type: choice
        options: [dev, prod]
      dry_run:
        type: boolean
        default: true

Key takeaways

  • paths and branches use glob patterns; ! negates.
  • schedule only runs on the default branch.
  • pull_request from a fork has no access to secrets.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →