We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae1054 commit 236d144Copy full SHA for 236d144
.github/workflows/ghpages-cleanup.yml
@@ -15,7 +15,7 @@ jobs:
15
uses: actions/checkout@v4
16
with:
17
# replace `fetch-depth` with `shallow-since` if and when actions/checkout#619 (or an equivalent) gets merged
18
- fetch-depth: 0
+ fetch-depth: 1
19
ref: gh-pages
20
- name: Mark stale directories for removal
21
run: |
@@ -31,7 +31,7 @@ jobs:
31
git config user.email 'github-actions[bot]@users.noreply.github.com'
32
- name: Commit
33
34
- if diff --cached --quiet; then
+ if git diff --staged --quiet; then
35
echo 'No stale directories were found. Nothing to commit.'
36
else
37
git commit -m 'chore: remove stale GitHub Pages branches'
0 commit comments