diff --git a/.github/workflows/blockifier_ci.yml b/.github/workflows/blockifier_ci.yml index fdf80eb900..ac38eb40a6 100644 --- a/.github/workflows/blockifier_ci.yml +++ b/.github/workflows/blockifier_ci.yml @@ -40,11 +40,6 @@ jobs: native-blockifier-artifacts-push: runs-on: starkware-ubuntu-20-04-medium steps: - - name: tmp step - run: | - echo ${{ github.event.pull_request.head.repo.full_name }} - echo ${{ github.repository }} - - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable @@ -78,14 +73,16 @@ jobs: - name: Authenticate with GCS # Fork PRs do not have access to secrets. - if: github.event.pull_request.head.repo.full_name == github.repository + # Push events should trigger the upload regardless of the originating PR. + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository uses: "google-github-actions/auth@v2" with: credentials_json: ${{ secrets.SA_NATIVE_BLOCKIFIER_ARTIFACTS_BUCKET_WRITER_ACCESS_KEY }} - name: Upload binary to GCP # Fork PRs do not have access to secrets (so no uploading). - if: github.event.pull_request.head.repo.full_name == github.repository + # Push events should trigger the upload regardless of the originating PR. + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository id: upload_file uses: "google-github-actions/upload-cloud-storage@v2" with: