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 20
20
steps :
21
21
- uses : input-output-hk/actions/wait-for-hydra@latest
22
22
with :
23
- status : ci/hydra-build:required
23
+ check : ci/hydra-build:required
24
24
25
25
upload :
26
26
needs : wait-for-hydra-eval
Original file line number Diff line number Diff line change 43
43
# For GitHub Apps
44
44
# conclusion=$(gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/status --jq '.check_runs[] | select(.name == "ci/hydra-build:$DEV_SHELL") | .conclusion')
45
45
# 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 ")
48
48
case "$conclusion" in
49
49
success)
50
50
echo "ci/hydra-build:$DEV_SHELL succeeded"
54
54
exit 1;;
55
55
*)
56
56
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
58
58
WAIT=$((180 + RANDOM % 180))
59
59
echo "ci/hydra-build:$DEV_SHELL pending. Waiting ${WAIT}s..."
60
60
sleep $WAIT;;
You can’t perform that action at this time.
0 commit comments