From c26119ecd5e10f27160e9fc9d4734a5aaddcfced Mon Sep 17 00:00:00 2001 From: Balazs Gyurak Date: Fri, 20 Nov 2020 10:21:28 +0000 Subject: [PATCH] Fix GITHUB.SHA and GITHUB.REF for repository_dispatch I'm fairly sure the `repository_dispatch` event always happens for the default branch. This presumption is confirmed by the fact that the `reusables.github-actions.branch-requirement` note is present for this event. I think this was a copy-paste error from `workflow_dispatch`. --- content/actions/reference/events-that-trigger-workflows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/reference/events-that-trigger-workflows.md b/content/actions/reference/events-that-trigger-workflows.md index 004663fa98b0..a583cd33b490 100644 --- a/content/actions/reference/events-that-trigger-workflows.md +++ b/content/actions/reference/events-that-trigger-workflows.md @@ -139,7 +139,7 @@ jobs: | Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` | | ------------------ | ------------ | ------------ | ------------------| -| [repository_dispatch](/webhooks/event-payloads/#repository_dispatch) | n/a | Last commit on the `GITHUB_REF` branch | Branch that received dispatch | +| [repository_dispatch](/webhooks/event-payloads/#repository_dispatch) | n/a | Last commit on default branch | Default branch | {% data reusables.github-actions.branch-requirement %}