Update .forgejo/workflows/package-check.yml
This commit is contained in:
parent
72e743f265
commit
47b1933883
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ jobs:
|
||||||
|
|
||||||
newest_version=$(echo -e "$main_version\n$community_version\n$testing_version" | sort -V | tail -n 1)
|
newest_version=$(echo -e "$main_version\n$community_version\n$testing_version" | sort -V | tail -n 1)
|
||||||
|
|
||||||
echo "newest_version" >> $GITHUB_ENV
|
echo "NEWEST_VERSION=$newest_version" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Determine if update is needed
|
- name: Determine if update is needed
|
||||||
run: |
|
run: |
|
||||||
|
@ -65,7 +65,7 @@ jobs:
|
||||||
current_day=$(( $(date +%s) / 86400 ))
|
current_day=$(( $(date +%s) / 86400 ))
|
||||||
|
|
||||||
update="false"
|
update="false"
|
||||||
if [ "$last_version" != "$LATEST_VERSION" ] || [ "$last_dockerfile_hash" != "$dockerfile_hash" ] || [ $((current_day - last_rebuild)) -gt 3 ]; then
|
if [ "$last_version" != "$NEWEST_VERSION" ] || [ "$last_dockerfile_hash" != "$dockerfile_hash" ] || [ $((current_day - last_rebuild)) -gt 3 ]; then
|
||||||
update="true"
|
update="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue