chore: do not run publish job for pull requests

This commit is contained in:
Akash Yadav
2023-01-19 10:00:05 +05:30
parent 8a1661c25a
commit 15bebba9f9
+2 -2
View File
@@ -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
path: build/nyx-state.json