Skip to content

Commit

Permalink
ci(actions): adjust workflow triggers
Browse files Browse the repository at this point in the history
Add the `pull_request_target` trigger, so that pull requests from a
fork will also start a build. Otherwise they can't be verified.

A downside to this is that changes to the CI workflow can't be directly
verified on a pull request anymore without some workarounds, because
the CI will now run in the context of the base of the pull request.

Closes #378.

See also:
- https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
  • Loading branch information
beiertu-mms committed Mar 1, 2024
1 parent 5a27bd4 commit 26060d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
name: Application build and test
on:
push:
branches:
- "main"
pull_request_target:
branches:
- "main"

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
Expand Down Expand Up @@ -42,6 +47,7 @@ jobs:
with:
files_ignore: |
**/*.md
docs/
.github/dependabot.yml
.github/technolinator.yml
Expand Down

0 comments on commit 26060d9

Please sign in to comment.