From 15bebba9f9d1e70f4ec79fff8a49177ff1538e97 Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Thu, 19 Jan 2023 10:00:05 +0530 Subject: [PATCH] chore: do not run publish job for pull requests --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 404652679..393df6499 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -170,7 +170,7 @@ jobs: name: Publish release runs-on: ubuntu-latest needs: [build_apk, unit_test_debug, test_tooling_api] - if: ${{ always() && github.ref == 'refs/heads/main' && needs.build_apk.result == 'success' && needs.unit_test_debug.result == 'success' && needs.test_tooling_api.result == 'success' }} + if: ${{ always() && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && needs.build_apk.result == 'success' && needs.unit_test_debug.result == 'success' && needs.test_tooling_api.result == 'success' }} steps: - name: Checkout uses: actions/checkout@v3 @@ -206,4 +206,4 @@ jobs: if: ${{ always() }} with: name: .nyx-state-${{ github.job }}.json - path: build/nyx-state.json \ No newline at end of file + path: build/nyx-state.json