Skip to content

Instantly share code, notes, and snippets.

@magmanu
Last active October 11, 2023 14:16
Show Gist options
  • Save magmanu/3045b19b5ba55d051a8143ff590f6bce to your computer and use it in GitHub Desktop.
Save magmanu/3045b19b5ba55d051a8143ff590f6bce to your computer and use it in GitHub Desktop.
Events that trigger workflows, in logic groups and explicitly showing if they need to be in the default branch in order to trigger the workflow.

Legend:

  • ⤴️ the event trigger only works if the workflow file is on the default branch.
  • ⏺️ any of the event's activity type can trigger workflows (as opposed to selected activity types)
Grouping Triggers       [Source]
Repository pull_request
pull_request_comment
⏺️ pull_request_review
⏺️ pull_request_review_comment
pull_request_target
push
⏺️ merge_group
⏺️ release
⤴️ repository_dispatch
Git create
⤴️ delete
⤴️ ⏺️ label
⤴️ status
Issue ⤴️ ⏺️ issue_comment
⤴️ ⏺️ issues
CD deployment
deployment_status
Project ⤴️ ⏺️ milestone
⤴️ ⏺️ project
⤴️ ⏺️ project_card
⤴️ ⏺️ project_column
Security/QA ⤴️ ⏺️ branch_protection_rule
⤴️ ⏺️ check_run
⤴️ ⏺️ check_suite
⤴️ public
Community/Wiki ⤴️ ⏺️ discussion
⤴️ ⏺️ discussion_comment
⤴️ gollum
⤴️ watch
⤴️ fork
Actions workflow_call
⤴️ workflow_dispatch
⤴️ workflow_run
schedule
Pages/Registry ⤴️ page_build
⤴️ ⏺️ registry_package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment