Commit 6e1e845 1 parent 244d0c8 commit 6e1e845 Copy full SHA for 6e1e845
File tree 1 file changed +1
-36
lines changed
1 file changed +1
-36
lines changed Original file line number Diff line number Diff line change 16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- name : Check
19
- run : |
20
- set -o errexit
21
- set -o nounset
22
- set -o pipefail
23
-
24
- function checks() {
25
- (gh pr checks "${{ github.event.pull_request.html_url }}" || true) |
26
- grep --invert-match "${{ github.run_id }}"
27
- }
28
-
29
- function count() {
30
- checks |
31
- cut --fields=2 |
32
- (grep --count "$@" || true)
33
- }
34
-
35
- while true; do
36
- pending=$(count pending)
37
- if ((pending > 0)); then
38
- echo "Waiting for $pending checks to complete..."
39
- sleep 60
40
- else
41
- break
42
- fi
43
- done
44
-
45
- fail=$(count fail)
46
- if ((fail > 0)); then
47
- echo "$fail checks failed"
48
- exit 1
49
- else
50
- echo "All checks passed"
51
- exit 0
52
- fi
53
- env :
54
- GH_TOKEN : ${{ github.token }}
19
+ uses : liblaf/template/.github/actions/check@main
55
20
56
21
merge :
57
22
name : Merge
You can’t perform that action at this time.
0 commit comments