From 96200f70221c584668f342b4e457390cc9ce54a2 Mon Sep 17 00:00:00 2001 From: Sergii Dymchenko Date: Wed, 21 Aug 2024 11:03:25 -0700 Subject: [PATCH] Correctly get run_id and run_attempt (#2426) Summary: Pull Request resolved: https://github.com/pytorch/benchmark/pull/2426 Reviewed By: atalman Differential Revision: D61606745 Pulled By: kit1980 fbshipit-source-id: 7a7ce4bfcef2e4309e07589ed0171f96fb478cf1 --- .github/workflows/_linux-benchmark-cuda.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_linux-benchmark-cuda.yml b/.github/workflows/_linux-benchmark-cuda.yml index 2385072e9..8096e1074 100644 --- a/.github/workflows/_linux-benchmark-cuda.yml +++ b/.github/workflows/_linux-benchmark-cuda.yml @@ -80,8 +80,8 @@ jobs: path: benchmark-output/ - name: Copy artifact and upload to Amazon S3 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: | . "${SETUP_SCRIPT}" pushd benchmark