Skip to content

Commit

Permalink
github: Run push actions on main and release branches only
Browse files Browse the repository at this point in the history
If dependabot creates new PRs, those are not originating from a fork.
Instead a new branch is created in the same repository which triggers
on both `push` and `pull_request`.

Limiting the push trigger to the main and release branches doesn't
anymore duplicate the jobs for dependabot PRs.

Signed-off-by: Julian Pelizäus <[email protected]>
  • Loading branch information
roosterfish committed Oct 19, 2023
1 parent 69b6b09 commit 849f27d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Tests
on:
- push
- push:
branches:
- main
- stable-*
- pull_request

permissions:
Expand Down

0 comments on commit 849f27d

Please sign in to comment.