Skip to content

Commit

Permalink
Fetch tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Morozko committed Aug 9, 2024
1 parent 026f4c6 commit 91860b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch all tags
# checkout only gets the latest commit, so it has no tag info
run: git fetch --depth=1 --tags

- uses: actions/setup-go@v5
with:
go-version: "1.22.x"
Expand Down
2 changes: 1 addition & 1 deletion codegen/gen_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -e
cd "$(dirname "$0")/.."

go run ./tools/docgen --version $(git describe --tags --abbrev=0) --output ./docs/plugins
go run ./tools/docgen --version $(git tag -l --sort=-creatordate | head -n1) --output ./docs/plugins

0 comments on commit 91860b8

Please sign in to comment.