Update .forgejo/workflows/package-check.yml

This commit is contained in:
melody 2025-06-18 18:17:56 +02:00
commit 07f1b82fa1

View file

@ -44,7 +44,7 @@ jobs:
FILE=".last_rebuild"
[ -f "$FILE" ] && LAST=$(cat "$FILE") || LAST="0"
echo "Last rebuild: $LAST"
[ $(( $(date +%s)/86400 - $LAST )) -gt 3 ] && echo "UPDATE=true" >> $GITHUB_ENV
[ $(( $(date +%s)/86400 - $LAST )) -gt 3 ] && echo "UPDATE=true" >> $GITHUB_ENV && echo "UPDATE_DATE=true" >> $GITHUB_ENV
- name: Start dockerd
if: env.UPDATE == 'true'
@ -77,7 +77,7 @@ jobs:
shell: sh
run: |
git config user.name "forgejo-runner"
git config user.email "runner@forgejo.local"
git config user.email "runner@shork.ch"
git add .last_version .last_rebuild
git commit -m "Update tracked version to $LATEST_VERSION"
git commit -m "Update build data"
git push