Skip to content

Commit

Permalink
Allow build on any non-dependabot branch, not just master
Browse files Browse the repository at this point in the history
  • Loading branch information
zkxs committed Oct 23, 2023
1 parent 2ae33e4 commit b76e5d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ on:
- screenshots/**
jobs:
cargo-deny:
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' # only run for pushes to tags or master
# only run for pushes to tags or non-dependabot branches
if: startsWith(github.ref, 'refs/tags/') || (startsWith(github.ref, 'refs/heads/') && !startsWith(github.ref, 'refs/heads/dependabot/'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
with:
arguments: --workspace
build:
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' # only run for pushes to tags or master
# only run for pushes to tags or non-dependabot branches
if: startsWith(github.ref, 'refs/tags/') || (startsWith(github.ref, 'refs/heads/') && !startsWith(github.ref, 'refs/heads/dependabot/'))
strategy:
matrix:
target:
Expand Down

0 comments on commit b76e5d0

Please sign in to comment.