Skip to content

Commit 6743ee5

Browse files
committed
ci: fix workflow to generate CRD reference docs
1 parent eb9d9e7 commit 6743ee5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/publish-versioned-api-ref.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
repository: ${{ github.repository }}.wiki
2727
path: wiki
2828

29+
- uses: actions/setup-go@v5
30+
name: Install Go
31+
with:
32+
go-version-file: messaging-topology-operator/go.mod
33+
2934
- name: Generate API reference
3035
run: make -C messaging-topology-operator api-reference
3136

@@ -42,4 +47,5 @@ jobs:
4247
echo "$REGENERATED_SIDEBAR" > Wiki_Sidebar.md
4348
git add ./API_Reference_${{ steps.get_version.outputs.VERSION }}.asciidoc
4449
git add ./Wiki_Sidebar.md
45-
git commit -m "Publish version ${{ steps.get_version.outputs.VERSION }} API Reference" && git push
50+
git commit -m "Publish version ${{ steps.get_version.outputs.VERSION }} API Reference"
51+
git push

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ manifests: install-tools
149149

150150
# Generate API reference documentation
151151
.PHONY: api-reference
152-
api-reference:
152+
api-reference: install-tools
153153
crd-ref-docs \
154154
--source-path ./api \
155155
--config ./docs/api/autogen/config.yaml \

0 commit comments

Comments
 (0)