From d1a7a88f1ea55bba7cdf72058f80862796913b1e Mon Sep 17 00:00:00 2001 From: Nadin Jbara <93648739+nadin-Starkware@users.noreply.github.com> Date: Sun, 6 Oct 2024 12:23:25 +0300 Subject: [PATCH] test (#27) --- .github/workflows/blockifier_ci.yml | 8 +------- .github/workflows/updload_artifacts.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/blockifier_ci.yml b/.github/workflows/blockifier_ci.yml index f26b4d1..9194270 100644 --- a/.github/workflows/blockifier_ci.yml +++ b/.github/workflows/blockifier_ci.yml @@ -37,10 +37,4 @@ jobs: require: write username: ${{ github.triggering_actor }} - - name: Check User Permission - if: steps.checkAccess.outputs.require-result == 'false' - run: | - echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" - echo "Job originally triggered by ${{ github.actor }}" - exit 1 + diff --git a/.github/workflows/updload_artifacts.yml b/.github/workflows/updload_artifacts.yml index 2d179a4..240c894 100644 --- a/.github/workflows/updload_artifacts.yml +++ b/.github/workflows/updload_artifacts.yml @@ -14,6 +14,25 @@ jobs: uses: "google-github-actions/auth@v2" with: credentials_json: ${{ secrets.NADIN_TEST_FORK_BUCKET_ACCESS_KEY }} + + - name: Commit hash - 1 + if: ${{ github.event_name == 'pull_request' }} + env: + COMMIT_SHA: ${{ github.event.workflow_run.head_commit.id }} + run: echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV + + - name: Commit hash - 2 + if: ${{ github.event_name == 'pull_request' }} + env: + COMMIT_SHA: ${{ github.event.pull_request.base.sha }} + run: echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV + + - name: Commit hash - 3 + if: ${{ github.event_name == 'pull_request' }} + env: + COMMIT_SHA: ${{ github.event_name == 'pull_request' }} + run: echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV + on-failure: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'failure' }}