Skip to content

Commit c7d61c2

Browse files
authored
get latest tag from tags and not from releases (#2016)
1 parent d6308f7 commit c7d61c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docgenerator.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fetch-depth: 1
1313

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

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

0 commit comments

Comments
 (0)