From a37f19263afa2c439fe386fdbb098fc9fc407155 Mon Sep 17 00:00:00 2001 From: Remco Vermeulen Date: Thu, 30 Nov 2023 11:33:58 -0800 Subject: [PATCH] Update check run id on reset --- .github/workflows/update-release-status.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-release-status.yml b/.github/workflows/update-release-status.yml index a784966ff4..874bc4d0b2 100644 --- a/.github/workflows/update-release-status.yml +++ b/.github/workflows/update-release-status.yml @@ -57,7 +57,7 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} run: | - CHECK_RUN_ID=$(gh api \ + check_run_id=$(gh api \ --header "Accept: application/vnd.github+json" \ --header "X-GitHub-Api-Version: 2022-11-28" \ --field name="release-status" \ @@ -65,9 +65,10 @@ jobs: --jq ".id" \ /repos/$GITHUB_REPOSITORY/check-runs) - echo "Created release status check run with id $CHECK_RUN_ID" + echo "Created release status check run with id $check_run_id" # Reset the status to in progress. echo "CHECK_RUN_STATUS=in_progress" >> "$GITHUB_ENV" + echo "CHECK_RUN_ID=$check_run_id" >> "$GITHUB_ENV" - name: Check all runs completed if: env.CHECK_RUN_STATUS != 'completed'