Skip to content

Commit a37f192

Browse files
committed
Update check run id on reset
1 parent 6eb54ff commit a37f192

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .github/workflows/update-release-status.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,18 @@ jobs:
5757
env:
5858
GITHUB_TOKEN: ${{ github.token }}
5959
run: |
60-
CHECK_RUN_ID=$(gh api \
60+
check_run_id=$(gh api \
6161
--header "Accept: application/vnd.github+json" \
6262
--header "X-GitHub-Api-Version: 2022-11-28" \
6363
--field name="release-status" \
6464
--field head_sha="$HEAD_SHA" \
6565
--jq ".id" \
6666
/repos/$GITHUB_REPOSITORY/check-runs)
6767
68-
echo "Created release status check run with id $CHECK_RUN_ID"
68+
echo "Created release status check run with id $check_run_id"
6969
# Reset the status to in progress.
7070
echo "CHECK_RUN_STATUS=in_progress" >> "$GITHUB_ENV"
71+
echo "CHECK_RUN_ID=$check_run_id" >> "$GITHUB_ENV"
7172
7273
- name: Check all runs completed
7374
if: env.CHECK_RUN_STATUS != 'completed'

0 commit comments

Comments
 (0)