Skip to content

Commit 6e1e845

Browse files
ci: sync with template repository
1 parent 244d0c8 commit 6e1e845

File tree

1 file changed

+1
-36
lines changed

1 file changed

+1
-36
lines changed

.github/workflows/merge.yaml

+1-36
Original file line numberDiff line numberDiff line change
@@ -16,42 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- 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
5520

5621
merge:
5722
name: Merge

0 commit comments

Comments
 (0)