Update .forgejo/workflows/package-check.yml
This commit is contained in:
parent
587951037a
commit
07f1b82fa1
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue