Skip to content

Commit

Permalink
fix wait-for-hydra for when there are too many check runs
Browse files Browse the repository at this point in the history
  • Loading branch information
dermetfan committed Feb 20, 2025
1 parent 757f338 commit 195e592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Waiting for ci/hydra-build:required to complete
run: |
while [[ true ]]; do
conclusion=$(gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs --jq '.check_runs[] | select(.name == "ci/hydra-build:required") | .conclusion')
conclusion=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs?check_name=ci/hydra-build:required" --jq '.check_runs[].conclusion')
case "$conclusion" in
success)
echo "ci/hydra-build:required succeeded"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Get specific check run status
run: |
while [[ true ]]; do
conclusion=$(gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs --jq '.check_runs[] | select(.name == "ci/hydra-build:required") | .conclusion')
conclusion=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs?check_name=ci/hydra-build:required" --jq '.check_runs[].conclusion')
case "$conclusion" in
success)
echo "ci/hydra-build:required succeeded"
Expand Down

0 comments on commit 195e592

Please sign in to comment.