From fb793a792424d968ced3463ea019443c999315b3 Mon Sep 17 00:00:00 2001 From: dorimedini-starkware Date: Sat, 10 Aug 2024 13:31:24 +0300 Subject: [PATCH] chore(ci): revert debugging commit and fix post-merge native push (#376) Signed-off-by: Dori Medini --- .github/workflows/blockifier_ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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: