File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 18
18
jq '[.[] | select(.waiting_seconds > 600)] | length')
19
19
echo "Queue size: $queue_size"
20
20
# temporary solution for https://www.githubstatus.com/incidents/m70hk23gx3nx (some workflows are uncancellable stuck)
21
- if (( queue_size > 8 ));then
21
+ if (( queue_size > 0 ));then
22
22
echo "Close gate for postcommits"
23
23
query='.runners[] | select(.labels[].name=="ghrun") | select( any([.labels[].name][]; .=="postcommit")) | .id'
24
24
else
42
42
echo "$j1" | sed '$d' | jq "$query" | while read x;do
43
43
echo "Runner: $x"
44
44
# temporary solution for https://www.githubstatus.com/incidents/m70hk23gx3nx (some workflows are uncancellable stuck)
45
- if (( queue_size > 8 ));then
45
+ if (( queue_size > 0 ));then
46
46
curl -Ls -X DELETE -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{secrets.GH_PERSONAL_ACCESS_TOKEN}}" \
47
47
-H "X-GitHub-Api-Version: 2022-11-28" \
48
48
https://api.github.com/repos/${{github.repository}}/actions/runners/$x/labels/postcommit
You can’t perform that action at this time.
0 commit comments