Skip to content

Commit 2a8b582

Browse files
authored
Second fix for getting latest tag (#619)
1 parent f334c5e commit 2a8b582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/doc-gen-reusable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
fetch-depth: 1
3030

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

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

0 commit comments

Comments
 (0)