From d00f7173653a97819ff2213a723737711081bdce Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 27 May 2024 14:48:10 -0600 Subject: [PATCH] Update ci.yml parens around if statement to only run releases on master --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa7fa1fc..ac91e95f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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: @@ -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: