Skip to content

Commit 0841496

Browse files
authored
Fix github outage (postcommit checks are stuck) one more fix (#6898)
1 parent deaf672 commit 0841496

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/gate_postcommits.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
4242
echo "$j1" | sed '$d' | jq "$query" | while read x;do
4343
echo "Runner: $x"
44-
if (( queue_size > 0 ));then
44+
# temporary solution for https://www.githubstatus.com/incidents/m70hk23gx3nx (some workflows are uncancellable stuck)
45+
if (( queue_size > 10 ));then
4546
curl -Ls -X DELETE -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{secrets.GH_PERSONAL_ACCESS_TOKEN}}" \
4647
-H "X-GitHub-Api-Version: 2022-11-28" \
4748
https://api.github.com/repos/${{github.repository}}/actions/runners/$x/labels/postcommit

0 commit comments

Comments
 (0)