Skip to content

Commit

Permalink
chore: use last git commit in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ludndev committed Jul 18, 2024
1 parent 534cf08 commit 66c0049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ', '
Expand Down

0 comments on commit 66c0049

Please sign in to comment.