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

@ -32,6 +32,9 @@ jobs:
latest=$(curl -s https://api.github.com/repos/${{ env.TARGET_REPO }}/releases/latest) latest=$(curl -s https://api.github.com/repos/${{ env.TARGET_REPO }}/releases/latest)
latest_tag=$(echo $latest | jq -r .tag_name) latest_tag=$(echo $latest | jq -r .tag_name)
published_at=$(echo $latest | jq -r .published_at) published_at=$(echo $latest | jq -r .published_at)
echo "$latest_tag" > tag.txt
echo "::set-output name=latest_tag::$latest_tag" echo "::set-output name=latest_tag::$latest_tag"
@ -49,15 +52,25 @@ jobs:
echo "Published at: $published_at" echo "Published at: $published_at"
echo "Time diff: $time_diff" echo "Time diff: $time_diff"
- name: Upload tag file
uses: actions/upload-artifact@v2
with:
name: tag-info
path: tag.txt
main_workflow: main_workflow:
needs: check-latest needs: check-latest
# if: needs.check-latest.outputs.run_workflow == 'true' # if: needs.check-latest.outputs.run_workflow == 'true'
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RELEASE_TAG: ${{ jobs.check-latest.outputs.latest_tag }}
steps: steps:
- name: echo TAG - name: Download tag file
uses: actions/download-artifact@v2
with:
name: tag-info
- name: Set tag variable
run: | run: |
RELEASE_TAG=$(cat tag.txt)
echo "New release detected: $RELEASE_TAG" echo "New release detected: $RELEASE_TAG"
- name: "Clone project repository" - name: "Clone project repository"
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -71,7 +84,7 @@ jobs:
run: | run: |
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/ npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
npm install -g @cerc-io/laconic-registry-cli npm install -g @cerc-io/laconic-registry-cli
- name: "Install jq" #- name: "Install jq"
run: sudo apt -y update && sudo apt -y install jq # run: sudo apt -y update && sudo apt -y install jq
- name: "Deploy Namada" - name: "Deploy Namada"
run: ./deploy.sh ${{ env.TARGET_REPO }} $RELEASE_TAG run: ./deploy.sh ${{ env.TARGET_REPO }} $RELEASE_TAG