From cfb955e76a8dab1d7638a23befdd9074268f144d Mon Sep 17 00:00:00 2001 From: Rory Primrose Date: Fri, 26 Jul 2024 23:22:15 +1000 Subject: [PATCH] Updated publish conditions --- .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 be45ccd..0b159fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,8 +108,8 @@ jobs: needs: build runs-on: ubuntu-latest # Only run on pushes which should only be on the base repository - if: github.event_name == 'push' && github.actor != 'dependabot[bot]' - + if: (github.event_name == 'push' || github.event_name == 'pull_request') && github.actor != 'dependabot[bot]' + steps: - name: Resolve project name @@ -160,7 +160,7 @@ jobs: needs: build runs-on: ubuntu-latest # Only run on pushes which should only be on the base repository and only where the branch is main or is a version tagged build - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.actor != 'dependabot[bot]' + if: (github.event_name == 'push' || github.event_name == 'pull_request') && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.actor != 'dependabot[bot]' steps: