Skip to content

Commit

Permalink
Make workflows testable in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Apr 24, 2024
1 parent baa5ba6 commit 484fa57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
# However, it's very important that we don't run code from forks without sandboxing it,
# because that way anybody could potentially extract repository secrets!
pull_request_target:
# pull_request_target makes it very annoying to test updates to the workflow,
# because all such runs use the workflow file from the base branch, not the PR.
# This can be fixed by _also_ running it on `pull_request` events,
# but to not have duplicate runs for every PR, we only do that when any workflows are updated.
pull_request:
paths:
- '.github/workflows/**'
push:
branches:
- master
Expand Down

0 comments on commit 484fa57

Please sign in to comment.