Skip to content

Commit

Permalink
ci(actions): adjust build trigger check for dependabot
Browse files Browse the repository at this point in the history
With the check using `github.ref` and dependabot as an actor, the build
is skipped. Previously, only the `push` trigger exists and will trigger
the workflow. As the `pull_request_target` has been added to also allow
pull requests from forks to trigger the workflow, the check needs to be
adjusted.

Related to:
- #378
  • Loading branch information
beiertu-mms committed Mar 8, 2024
1 parent 8a3c22a commit bd3aa39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
if: |
github.actor != 'dependabot[bot]' ||
(github.actor == 'dependabot[bot]' && github.ref != 'refs/heads/main')
(github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target')
outputs:
has_changes: ${{ steps.changed-files.outputs.any_changed }}
steps:
Expand Down

0 comments on commit bd3aa39

Please sign in to comment.