Skip to content

Commit 236d144

Browse files
committed
ci: oh muffins. I need more sleep
1 parent cae1054 commit 236d144

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ghpages-cleanup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
# replace `fetch-depth` with `shallow-since` if and when actions/checkout#619 (or an equivalent) gets merged
18-
fetch-depth: 0
18+
fetch-depth: 1
1919
ref: gh-pages
2020
- name: Mark stale directories for removal
2121
run: |
@@ -31,7 +31,7 @@ jobs:
3131
git config user.email 'github-actions[bot]@users.noreply.github.com'
3232
- name: Commit
3333
run: |
34-
if diff --cached --quiet; then
34+
if git diff --staged --quiet; then
3535
echo 'No stale directories were found. Nothing to commit.'
3636
else
3737
git commit -m 'chore: remove stale GitHub Pages branches'

0 commit comments

Comments
 (0)