Skip to content

Commit f5b82f2

Browse files
authored
ci: reduce Dependabot soak period from 7 days to 2 days for testing (#63)
1 parent 101b7ba commit f5b82f2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/dependabot-automerge.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Dependabot Auto-merge (7-day soak)
1+
name: Dependabot Auto-merge (2-day soak)
22

3-
# Runs daily. For any open Dependabot PR that is >= 7 days old, approved, and
3+
# Runs daily. For any open Dependabot PR that is >= 2 days old, approved, and
44
# has passing CI — enables auto-merge so the merge queue picks it up.
55

66
on:
@@ -22,8 +22,8 @@ jobs:
2222
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2323
REPO: ${{ github.repository }}
2424
run: |
25-
SEVEN_DAYS_AGO=$(date -u -d '7 days ago' '+%Y-%m-%dT%H:%M:%SZ' 2>/dev/null || \
26-
date -u -v-7d '+%Y-%m-%dT%H:%M:%SZ')
25+
SEVEN_DAYS_AGO=$(date -u -d '2 days ago' '+%Y-%m-%dT%H:%M:%SZ' 2>/dev/null || \
26+
date -u -v-2d '+%Y-%m-%dT%H:%M:%SZ')
2727
2828
echo "Looking for Dependabot PRs opened before $SEVEN_DAYS_AGO ..."
2929
@@ -52,9 +52,9 @@ jobs:
5252
continue
5353
fi
5454
55-
# Skip if less than 7 days old
55+
# Skip if less than 2 days old
5656
if [[ "$CREATED" > "$SEVEN_DAYS_AGO" ]]; then
57-
echo "PR #$NUMBER — opened $CREATED, not yet 7 days old, skipping"
57+
echo "PR #$NUMBER — opened $CREATED, not yet 2 days old, skipping"
5858
continue
5959
fi
6060

0 commit comments

Comments
 (0)