Skip to content

Commit

Permalink
get latest release version from GitHub API for prod deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Feb 13, 2024
1 parent 4d9410c commit 635dadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Get version
id: package
run: |
echo "::set-output name=version::$(node -p "require('./package.json').version")"
echo "::set-output name=version::$(curl --silent "https://api.github.com/repos/clearlydefined/service/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')"
shell: bash

- name: Use version
Expand Down

0 comments on commit 635dadd

Please sign in to comment.