Update .forgejo/workflows/package-check.yml
This commit is contained in:
parent
91b2043126
commit
bb48ea3f64
1 changed files with 4 additions and 1 deletions
|
@ -44,7 +44,10 @@ 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
|
||||
if [ $(( $(date +%s) / 86400 - $LAST )) -gt 3 ]; then
|
||||
echo "UPDATE=true" >> "$GITHUB_ENV"
|
||||
fi
|
||||
|
||||
|
||||
- name: Start dockerd
|
||||
if: env.UPDATE == 'true'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue