ffs
Some checks failed
Check Latest Release / check-latest (push) Has been cancelled
Check Latest Release / main_workflow (push) Has been skipped

This commit is contained in:
zramsay 2025-02-05 15:19:35 -05:00
parent df8d6f19e2
commit 7a651ec125

View File

@ -33,6 +33,9 @@ jobs:
latest_tag=$(echo $latest | jq -r .tag_name)
published_at=$(echo $latest | jq -r .published_at)
echo "$latest_tag" > tag.txt
echo "::set-output name=latest_tag::$latest_tag"
current_time=$(date -u +%s)
@ -49,15 +52,25 @@ jobs:
echo "Published at: $published_at"
echo "Time diff: $time_diff"
- name: Upload tag file
uses: actions/upload-artifact@v2
with:
name: tag-info
path: tag.txt
main_workflow:
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
- name: Download tag file
uses: actions/download-artifact@v2
with:
name: tag-info
- name: Set tag variable
run: |
RELEASE_TAG=$(cat tag.txt)
echo "New release detected: $RELEASE_TAG"
- name: "Clone project repository"
uses: actions/checkout@v3
@ -71,7 +84,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 }} $RELEASE_TAG