ffs
This commit is contained in:
parent
df8d6f19e2
commit
7a651ec125
@ -32,6 +32,9 @@ jobs:
|
||||
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" > tag.txt
|
||||
|
||||
|
||||
echo "::set-output name=latest_tag::$latest_tag"
|
||||
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user