Webhook event payload | Activity types | GITHUB_SHA | GITHUB_REF |
---|
label | - created - edited - deleted | Last commit on default branch | Default branch |
Note: More than one activity type triggers this event. For information about each activity type. By default, all activity types trigger workflows that run on this event. You can limit your workflow runs to specific activity types using the types
keyword.
Note: This event will only trigger a workflow run if the workflow file is on the default branch.
Runs your workflow when a label in your workflow's repository is created or modified. For more information about labels.If you want to run your workflow when a label is added to or removed from an issue, pull request, or discussion, use the labeled
or unlabeled
activity types for the issues
, pull_request
, pull_request_target
, or discussion
events instead.
For example, you can run a workflow when a label has been created
or deleted
.
on:
label:
types: [created, deleted]