Skip to content

Commit

Permalink
test (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadin-Starkware authored Oct 6, 2024
1 parent 47c584a commit d1a7a88
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/blockifier_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

19 changes: 19 additions & 0 deletions .github/workflows/updload_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down

0 comments on commit d1a7a88

Please sign in to comment.