From df8d6f19e2d57ceec2fa712a0b916526e2c4d7bb Mon Sep 17 00:00:00 2001 From: zramsay Date: Wed, 5 Feb 2025 15:12:10 -0500 Subject: [PATCH] fricken gitea --- .gitea/workflows/deploy-namada.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy-namada.yml b/.gitea/workflows/deploy-namada.yml index 00baf95..d2b95af 100644 --- a/.gitea/workflows/deploy-namada.yml +++ b/.gitea/workflows/deploy-namada.yml @@ -22,6 +22,9 @@ env: jobs: check-latest: runs-on: ubuntu-latest + outputs: + latest_tag: ${{ steps.check-latest.outputs.latest_tag }} + run_workflow: ${{ steps.check-latest.outputs.run_workflow }} steps: - name: Get latest release id: check-latest @@ -42,7 +45,6 @@ jobs: echo "::set-output name=run_workflow::false" fi - # Debug output echo "Latest tag: $latest_tag" echo "Published at: $published_at" echo "Time diff: $time_diff" @@ -51,10 +53,12 @@ jobs: needs: check-latest # if: needs.check-latest.outputs.run_workflow == 'true' runs-on: ubuntu-latest + env: + RELEASE_TAG: ${{ jobs.check-latest.outputs.latest_tag }} steps: - name: echo TAG run: | - echo "New release detected: ${{ needs.check-latest.outputs.latest_tag }}" + echo "New release detected: $RELEASE_TAG" - name: "Clone project repository" uses: actions/checkout@v3 - name: Use Node.js @@ -67,7 +71,7 @@ jobs: run: | npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/ npm install -g @cerc-io/laconic-registry-cli - #- name: "Install jq" - # run: sudo apt -y update && sudo apt -y install jq + - name: "Install jq" + run: sudo apt -y update && sudo apt -y install jq - name: "Deploy Namada" - run: ./deploy.sh ${{ env.TARGET_REPO }} ${{ needs.check-latest.outputs.latest_tag }} + run: ./deploy.sh ${{ env.TARGET_REPO }} $RELEASE_TAG