Skip to content

Commit 484fa57

Browse files
committed
Make workflows testable in PRs
1 parent baa5ba6 commit 484fa57

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/main.yml

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
# However, it's very important that we don't run code from forks without sandboxing it,
66
# because that way anybody could potentially extract repository secrets!
77
pull_request_target:
8+
# pull_request_target makes it very annoying to test updates to the workflow,
9+
# because all such runs use the workflow file from the base branch, not the PR.
10+
# This can be fixed by _also_ running it on `pull_request` events,
11+
# but to not have duplicate runs for every PR, we only do that when any workflows are updated.
12+
pull_request:
13+
paths:
14+
- '.github/workflows/**'
815
push:
916
branches:
1017
- master

0 commit comments

Comments
 (0)