Skip to content

Commit

Permalink
Second fix for getting latest tag (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpholguera committed Jan 20, 2022
1 parent f334c5e commit 2a8b582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/doc-gen-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fetch-depth: 1

- name: Set VERSION to env
run: echo "VERSION=$(curl -s https://api.github.com/repos/OWASP/owasp-masvs/releases/latest | jq '.tag_name' | sed 's/\"//g')" >> $GITHUB_ENV
run: echo "VERSION=$(curl -s https://api.github.com/repos/OWASP/owasp-masvs/tags | jq '.[0].name' | sed 's/\"//g')" >> $GITHUB_ENV

- name: Set DEV VERSION if it's not a tag
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
Expand Down

0 comments on commit 2a8b582

Please sign in to comment.