Skip to content

Commit

Permalink
Add workflow id and attempt id
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Jun 7, 2024
1 parent d4fd3c3 commit 7e2b7ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/torchao.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ jobs:
sudo ldconfig
- name: Check workflow ID env
env:
WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id }}
WORKFLOW_RUN_ATTEMPT: ${{ github.event.workflow_run.run_attempt }}
WORKFLOW_RUN_ID: ${{ github.run_id }}
WORKFLOW_RUN_ATTEMPT: ${{ github.run_attempt }}
run: |
if [ -z "${WORKFLOW_RUN_ID}" ]; then
echo "WORKFLOW_RUN_ID is unset or set to the empty string"
echo ${{ github.event.workflow_run.id }}
echo ${{ github.run_id }}
exit 1
fi
if [ -z "${WORKFLOW_RUN_ATTEMPT}" ]; then
echo "WORKFLOW_RUN_ATTEMPT is unset or set to the empty string"
echo ${{ github.event.workflow_run.run_attempt }}
echo ${{ github.run_attempt }}
exit 1
fi
- name: Clone and setup conda env
Expand Down

0 comments on commit 7e2b7ca

Please sign in to comment.