Skip to content

Commit

Permalink
get latest tag from tags and not from releases (#2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpholguera authored Dec 23, 2021
1 parent d6308f7 commit c7d61c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docgenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fetch-depth: 1

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

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

0 comments on commit c7d61c2

Please sign in to comment.