From 457b8e6239695f69abd0040c8222c0aa114e255b Mon Sep 17 00:00:00 2001 From: zramsay Date: Wed, 13 Aug 2025 14:09:42 +0000 Subject: [PATCH] run weekly and publish/deploy no matter what --- .gitea/workflows/deploy-namada.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/deploy-namada.yml b/.gitea/workflows/deploy-namada.yml index f5b42b6..7856f95 100644 --- a/.gitea/workflows/deploy-namada.yml +++ b/.gitea/workflows/deploy-namada.yml @@ -4,7 +4,7 @@ on: push: branches: '*' schedule: - - cron: '*/10 * * * *' + - cron: '0 0 * * 0' # Weekly: Every Sunday at midnight UTC workflow_dispatch: env: @@ -38,26 +38,16 @@ jobs: latest_tag=$(echo $latest | jq -r .tag_name) published_at=$(echo $latest | jq -r .published_at) - current_time=$(date -u +%s) - release_time=$(date -u -d "$published_at" +%s) - time_diff=$((current_time - release_time)) - echo "Latest tag: $latest_tag" echo "Published at: $published_at" - echo "Time diff: $time_diff" - # Only proceed if release is recent - # if [ $time_diff -le 600 ]; then - echo "Recent release detected - proceeding with deployment" - - # Setup dependencies + echo "Proceeding with deployment" + + # Setup dependencies sudo apt -y update && sudo apt -y install jq corepack enable npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/ npm install -g @cerc-io/laconic-registry-cli - - # Run deployment - ./deploy.sh ${{ env.TARGET_REPO }} $latest_tag - # else - # echo "No recent release - skipping deployment" - # fi + + # Run deployment + ./deploy.sh ${{ env.TARGET_REPO }} $latest_tag \ No newline at end of file