From beeff6cfa4bd4d0839a711449df2c540331c001c Mon Sep 17 00:00:00 2001 From: zramsay Date: Wed, 5 Feb 2025 15:02:59 -0500 Subject: [PATCH] thanks claude --- .gitea/workflows/deploy-namada.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/deploy-namada.yml b/.gitea/workflows/deploy-namada.yml index 81fd301..b6619db 100644 --- a/.gitea/workflows/deploy-namada.yml +++ b/.gitea/workflows/deploy-namada.yml @@ -19,34 +19,33 @@ env: DEPLOYER_LRN: "lrn://vaasl-provider/deployers/webapp-deployer-api.apps.vaasl.io" AUTHORITY: "vaasl" - jobs: check-latest: runs-on: ubuntu-latest - outputs: - run_workflow: ${{ steps.check-latest.outputs.run_workflow }} steps: - name: Get latest release - id: check + id: check-latest run: | latest=$(curl -s https://api.github.com/repos/${{ env.TARGET_REPO }}/releases/latest) latest_tag=$(echo $latest | jq -r .tag_name) published_at=$(echo $latest | jq -r .published_at) - echo "latest_tag=$latest_tag" >> $GITHUB_OUTPUT + echo "::set-output name=latest_tag::$latest_tag" current_time=$(date -u +%s) release_time=$(date -u -d "$published_at" +%s) time_diff=$((current_time - release_time)) if [ $time_diff -le 300 ]; then - echo "run_workflow=true" >> $GITHUB_OUTPUT + echo "::set-output name=run_workflow::true" else - echo "run_workflow=false" >> $GITHUB_OUTPUT + echo "::set-output name=run_workflow::false" fi - cat "GH out" - cat $GITHUB_OUTPUT + # Debug output + echo "Latest tag: $latest_tag" + echo "Published at: $published_at" + echo "Time diff: $time_diff" main_workflow: needs: check-latest