summaryrefslogtreecommitdiff
path: root/.github/workflows/docs_cleanup.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/docs_cleanup.yml')
-rw-r--r--.github/workflows/docs_cleanup.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/docs_cleanup.yml b/.github/workflows/docs_cleanup.yml
index 1bb48ff08..36fd3488b 100644
--- a/.github/workflows/docs_cleanup.yml
+++ b/.github/workflows/docs_cleanup.yml
@@ -45,7 +45,8 @@ jobs:
run: |
cd target
first=`git rev-list --max-parents=0 HEAD`
- last=`git rev-list --until=1.month.ago -n1 HEAD`
+ cutoff=`date -d "-1 month" +%Y-%m-%d`
+ last=`git log --pretty='%as %H' | awk -v cutoff=$cutoff '$1 < cutoff { print $2 }' | head -n1`
if [ -n "$last" ]; then
git checkout $last
ts=`git log -1 --format=%ct`
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback