Update .forgejo/workflows/package-check.yml

This commit is contained in:
melody 2025-07-06 22:41:41 +02:00
commit a85900f6ed

View file

@ -60,12 +60,12 @@ jobs:
last_version=$(cat $last_version_file 2>/dev/null || echo "none")
last_rebuild=$(cat $last_rebuild_file 2>/dev/null || echo 0)
last_dockerfile_hash=$(cat $last_dockerfile_hash_fiole 2>/dev/null || echo "none")
last_dockerfile_hash=$(cat $last_dockerfile_hash_file 2>/dev/null || echo "none")
dockerfile_hash=$(sha256sum Dockerfile 2>/dev/null || echo "nuh")
current_day=$(( $(date +%s) / 86400 ))
update="false"
if [ "$last_version" != "$LATEST_VERSION" ] || ["$last_dockerfile_hash" != "$dockerfile_hash"] || [ $((current_day - last_rebuild)) -gt 3 ]; then
if [ "$last_version" != "$LATEST_VERSION" ] || [ "$last_dockerfile_hash" != "$dockerfile_hash" ] || [ $((current_day - last_rebuild)) -gt 3 ]; then
update="true"
fi