Skip to content

Commit 6e03156

Browse files
chore: wip
1 parent 14cbb8d commit 6e03156

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/buddy-bot.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,14 @@ jobs:
110110
HOUR=$(date -u +%-H)
111111
112112
# Rebase check: every 20 minutes (minute 0, 20, or 40)
113-
if [ $((MINUTE % 20)) -lt 5 ]; then
113+
# Skip check at top of even hours when update job runs, to avoid
114+
# the check job auto-closing PRs that update just created.
115+
IS_UPDATE_TIME=false
116+
if [ "$MINUTE" -lt 5 ] && [ $((HOUR % 2)) -eq 0 ]; then
117+
IS_UPDATE_TIME=true
118+
fi
119+
120+
if [ $((MINUTE % 20)) -lt 5 ] && [ "$IS_UPDATE_TIME" = "false" ]; then
114121
echo "run_check=true" >> $GITHUB_OUTPUT
115122
fi
116123

0 commit comments

Comments
 (0)