Skip to content

Commit edd3d8d

Browse files
authored
Update main.yml (#169)
* Update main.yml * Update wait-and-upload.yml
1 parent 8acf1c1 commit edd3d8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: input-output-hk/actions/wait-for-hydra@latest
2222
with:
23-
status: ci/hydra-build:required
23+
check: ci/hydra-build:required
2424

2525
upload:
2626
needs: wait-for-hydra-eval

.github/workflows/wait-and-upload.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
# For GitHub Apps
4444
# conclusion=$(gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/status --jq '.check_runs[] | select(.name == "ci/hydra-build:$DEV_SHELL") | .conclusion')
4545
# For GitHub Statuses; we need --paginate because there are so many statuses
46-
echo "Querying: gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/status --paginate --jq '.statuses[] | select(.context == \"ci/hydra-build:$DEV_SHELL\") | .state'"
47-
conclusion=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/status" --paginate --jq ".statuses[] | select(.context == \"ci/hydra-build:$DEV_SHELL\") | .state")
46+
echo "gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs --paginate --jq '.check_runs[] | select(.name == \"ci/hydra-build:$DEV_SHELL\") | .conclusion'"
47+
conclusion=$(gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs --paginate --jq '.check_runs[] | select(.name == \"ci/hydra-build:$DEV_SHELL\") | .conclusion")
4848
case "$conclusion" in
4949
success)
5050
echo "ci/hydra-build:$DEV_SHELL succeeded"
@@ -54,7 +54,7 @@ jobs:
5454
exit 1;;
5555
*)
5656
echo "conclusion is: '$conclusion'"
57-
gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/status --paginate --jq '.statuses[] | .state+"\t"+.context'|sort
57+
gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs --paginate --jq '.check_runs[] | .conclusion+"\t"+.name'|sort
5858
WAIT=$((180 + RANDOM % 180))
5959
echo "ci/hydra-build:$DEV_SHELL pending. Waiting ${WAIT}s..."
6060
sleep $WAIT;;

0 commit comments

Comments
 (0)