From 66c004913165d85743e6d201e9e9191a6e9fa888 Mon Sep 17 00:00:00 2001 From: ludndev Date: Thu, 18 Jul 2024 13:35:47 +0100 Subject: [PATCH] chore: use last git commit in release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f8e53f2..0ef981c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,8 +61,8 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - $TAG_COMMIT_SHA = git rev-list -n 1 $env:GITHUB_REF - $CHECK_RUNS = gh api repos/$env:GITHUB_REPOSITORY/commits/$TAG_COMMIT_SHA/check-runs --jq '.check_runs[] | {name, conclusion}' + $COMMIT_SHA = git rev-parse HEAD + $CHECK_RUNS = gh api repos/$env:GITHUB_REPOSITORY/commits/$COMMIT_SHA/check-runs --jq '.check_runs[] | {name, conclusion}' $FAILED_CHECKS = $CHECK_RUNS | ConvertFrom-Json | Where-Object { $_.conclusion -ne 'success' } $ALL_CHECKS = ($CHECK_RUNS | ConvertFrom-Json | ForEach-Object { "$($_.name): $($_.conclusion)" }) -join ', '