File tree Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 1
- name : Upload to ghci .io
1
+ name : Upload to ghcr .io
2
2
3
3
on :
4
4
push :
@@ -28,17 +28,18 @@ jobs:
28
28
- name : Waiting for ci/hydra-build:required to complete
29
29
run : |
30
30
while [[ true ]]; do
31
- conclusion=$(gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs --jq '.check_runs[] | select(.name == "ci/hydra-build:required") | .conclusion')
31
+ check_name='ci/hydra-build:required'
32
+ conclusion=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs?check_name=$check_name" --jq '.check_runs[].conclusion')
32
33
case "$conclusion" in
33
34
success)
34
- echo "ci/hydra-build:required succeeded"
35
+ echo "$check_name succeeded"
35
36
exit 0;;
36
- failure)
37
- echo "ci/hydra-build:required failed"
38
- exit 1;;
39
- *)
40
- echo "ci/hydra-build:required pending. Waiting 30s..."
37
+ '')
38
+ echo "$check_name pending. Waiting 30s..."
41
39
sleep 30;;
40
+ *)
41
+ echo "$check_name terminated unsuccessfully"
42
+ exit 1;;
42
43
esac
43
44
done
44
45
Original file line number Diff line number Diff line change @@ -25,20 +25,21 @@ jobs:
25
25
name : " Wait for hydra check-runs"
26
26
runs-on : ubuntu-latest
27
27
steps :
28
- - name : Get specific check run status
28
+ - name : Waiting for ci/hydra-build:required to complete
29
29
run : |
30
30
while [[ true ]]; do
31
- conclusion=$(gh api repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs --jq '.check_runs[] | select(.name == "ci/hydra-build:required") | .conclusion')
31
+ check_name='ci/hydra-build:required'
32
+ conclusion=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs?check_name=$check_name" --jq '.check_runs[].conclusion')
32
33
case "$conclusion" in
33
34
success)
34
- echo "ci/hydra-build:required succeeded"
35
+ echo "$check_name succeeded"
35
36
exit 0;;
36
- failure)
37
- echo "ci/hydra-build:required failed"
38
- exit 1;;
39
- *)
40
- echo "ci/hydra-build:required pending. Waiting 30s..."
37
+ '')
38
+ echo "$check_name pending. Waiting 30s..."
41
39
sleep 30;;
40
+ *)
41
+ echo "$check_name terminated unsuccessfully"
42
+ exit 1;;
42
43
esac
43
44
done
44
45
You can’t perform that action at this time.
0 commit comments