Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
parens around if statement to only run releases on master
  • Loading branch information
amarcum authored May 27, 2024
1 parent 8141621 commit d00f717
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:

# Increments to the next tag on master only, bumps version based on the recent commits
new_tag:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' && github.event_name == 'push'
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name == 'push'
runs-on: ubuntu-latest
needs: test
steps:
Expand All @@ -107,7 +107,7 @@ jobs:

# Creates a new release page on GitHub when master changes
create_release:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' && github.event_name == 'push'
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name == 'push'
runs-on: ubuntu-latest
needs: new_tag
steps:
Expand All @@ -129,7 +129,7 @@ jobs:
# In this Release section, we are re-building the binaries because eventually we can include the new git tag as their
# version string when saying 'colly --version'
build_and_upload:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' && github.event_name == 'push'
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name == 'push'
runs-on: ubuntu-latest
needs: [test, new_tag, create_release]
strategy:
Expand Down

0 comments on commit d00f717

Please sign in to comment.