Skip to content

Commit afddf72

Browse files
authored
Fix postcommit gate (there are no stuck checks at this moment) (ydb-platform#7102)
1 parent 20355c6 commit afddf72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/gate_postcommits.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
jq '[.[] | select(.waiting_seconds > 600)] | length')
1919
echo "Queue size: $queue_size"
2020
# 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
2222
echo "Close gate for postcommits"
2323
query='.runners[] | select(.labels[].name=="ghrun") | select( any([.labels[].name][]; .=="postcommit")) | .id'
2424
else
@@ -42,7 +42,7 @@ jobs:
4242
echo "$j1" | sed '$d' | jq "$query" | while read x;do
4343
echo "Runner: $x"
4444
# 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
4646
curl -Ls -X DELETE -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{secrets.GH_PERSONAL_ACCESS_TOKEN}}" \
4747
-H "X-GitHub-Api-Version: 2022-11-28" \
4848
https://api.github.com/repos/${{github.repository}}/actions/runners/$x/labels/postcommit

0 commit comments

Comments
 (0)