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 b9c1151 commit c5abd21
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Tests
on:
- push
- pull_request
push:
branches:
- main
- stable-*
pull_request:

permissions:
contents: read
Expand Down

0 comments on commit c5abd21

Please sign in to comment.