diff --git a/.github/workflows/release-ghcr.yaml b/.github/workflows/release-ghcr.yaml index 57e423340d9..d6671255833 100644 --- a/.github/workflows/release-ghcr.yaml +++ b/.github/workflows/release-ghcr.yaml @@ -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" diff --git a/.github/workflows/release-upload.yaml b/.github/workflows/release-upload.yaml index 88ff81b1018..e3cbf3ec0ba 100644 --- a/.github/workflows/release-upload.yaml +++ b/.github/workflows/release-upload.yaml @@ -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"