Skip to content

Commit

Permalink
chore: change checkout ref (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadin-Starkware authored Oct 6, 2024
1 parent 87dfe7e commit a753c98
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/upload_artifacts_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,26 @@ jobs:
native-blockifier-artifacts-push:
runs-on: starkware-ubuntu-20-04-medium
steps:
- name: Get commit hash prefix for PR update
env:
COMMIT_SHA: ${{ github.event.workflow_run.head_commit.id }}
run: |
echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV
echo "COMMIT_SHA=${COMMIT_SHA}" >> $GITHUB_ENV
- name: Check tests status
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
run: |
echo 'Blockifier-CI workflow failed'
exit 1
- uses: actions/checkout@v4
with:
ref: ${{ env.COMMIT_SHA }}
- uses: ./.github/actions/bootstrap
- name: Build native blockifier
run: ./build_native_in_docker.sh scripts/build_native_blockifier.sh

# Commit hash on pull request event would be the head commit of the branch.
- name: Get commit hash prefix for PR update
env:
COMMIT_SHA: ${{ github.event.workflow_run.head_commit.id }}
run: echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV

# TODO: Add post merge event to get the commit hash.

Expand Down

0 comments on commit a753c98

Please sign in to comment.