From 73a1de71b5af691ad474281acc4f4dc0e6c11558 Mon Sep 17 00:00:00 2001 From: Xu Zhao Date: Fri, 7 Jun 2024 13:20:28 -0400 Subject: [PATCH] Test the workflow run id. --- .github/workflows/torchao.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/torchao.yml b/.github/workflows/torchao.yml index f82b7fb0f2..113493ecb6 100644 --- a/.github/workflows/torchao.yml +++ b/.github/workflows/torchao.yml @@ -30,6 +30,13 @@ jobs: sudo nvidia-smi -ac 1215,1410 nvidia-smi sudo ldconfig + - name: Test workflow ID env + env: + WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id }} + WORKFLOW_RUN_ATTEMPT: ${{ github.event.workflow_run.run_attempt }} + run: | + echo ${WORKFLOW_RUN_ID} + echo ${WORKFLOW_RUN_ATTEMPT} - name: Clone and setup conda env run: | CONDA_ENV=${BASE_CONDA_ENV} . "${SETUP_SCRIPT}"