Update .forgejo/workflows/build.yml
This commit is contained in:
parent
5378706724
commit
0e89c51602
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue