fricken gitea
This commit is contained in:
parent
bec851d3ad
commit
df8d6f19e2
@ -22,6 +22,9 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
check-latest:
|
check-latest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
latest_tag: ${{ steps.check-latest.outputs.latest_tag }}
|
||||||
|
run_workflow: ${{ steps.check-latest.outputs.run_workflow }}
|
||||||
steps:
|
steps:
|
||||||
- name: Get latest release
|
- name: Get latest release
|
||||||
id: check-latest
|
id: check-latest
|
||||||
@ -42,7 +45,6 @@ jobs:
|
|||||||
echo "::set-output name=run_workflow::false"
|
echo "::set-output name=run_workflow::false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Debug output
|
|
||||||
echo "Latest tag: $latest_tag"
|
echo "Latest tag: $latest_tag"
|
||||||
echo "Published at: $published_at"
|
echo "Published at: $published_at"
|
||||||
echo "Time diff: $time_diff"
|
echo "Time diff: $time_diff"
|
||||||
@ -51,10 +53,12 @@ jobs:
|
|||||||
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: echo TAG
|
||||||
run: |
|
run: |
|
||||||
echo "New release detected: ${{ needs.check-latest.outputs.latest_tag }}"
|
echo "New release detected: $RELEASE_TAG"
|
||||||
- name: "Clone project repository"
|
- name: "Clone project repository"
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
@ -67,7 +71,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 }} ${{ needs.check-latest.outputs.latest_tag }}
|
run: ./deploy.sh ${{ env.TARGET_REPO }} $RELEASE_TAG
|
||||||
|
Loading…
Reference in New Issue
Block a user