File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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"
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;;
You can’t perform that action at this time.
0 commit comments