Skip to content

Commit ec15ffb

Browse files
Fetch tags
Thanks to actions/checkout#579 (comment)
1 parent 31ad9de commit ec15ffb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ jobs:
7373
runs-on: ubuntu-latest
7474
steps:
7575
- uses: actions/checkout@v4
76+
- name: Fetch all tags
77+
# checkout only gets the latest commit, so it has no tag info
78+
run: git fetch --depth=1 --tags
79+
7680
- uses: actions/setup-go@v5
7781
with:
7882
go-version: "1.22.x"

codegen/gen_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set -e
44
cd "$(dirname "$0")/.."
55

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

0 commit comments

Comments
 (0)