Update .forgejo/workflows/build.yml

This commit is contained in:
docker-images 2025-07-27 23:16:07 +02:00
commit 0e89c51602

View file

@ -19,6 +19,7 @@ jobs:
COMMIT_MESSAGE: "Update build metadata"
GET_NEWEST_VERSION_CMD: "curl https://api.github.com/repos/monero-project/monero/tags | jq -r .[0].name"
GIT_REPO_URL: "https://github.com/monero-project/monero"
REBUILD_ALL_X_DAYS: 14
steps:
- name: Install dependencies
@ -46,7 +47,7 @@ jobs:
current_day=$(( $(date +%s) / 86400 ))
update="false"
if [ ${{ github.event_name }} == "workflow_dispatch" ] || [ "$last_version" != "$NEWEST_VERSION" ] || [ $((current_day - last_rebuild)) -gt 14 ]; then
if [ ${{ github.event_name }} == "workflow_dispatch" ] || [ "$last_version" != "$NEWEST_VERSION" ] || [ $((current_day - last_rebuild)) -gt "$REBUILD_ALL_X_DAYS" ]; then
update="true"
fi