diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 798cc79..f3cb1de 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -51,7 +51,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