Skip to content

Commit 8da905d

Browse files
committed
Fix API ref workflow
Previously in build-test-publish, a step would commit an API reference to the wiki, for every commit. We have moved away from that practice, and that change broke this workflow. The simplest solution is to generate the Wiki page from the tag, as part of this workflow.
1 parent 26f1f59 commit 8da905d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

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

29+
- name: Generate API reference
30+
run: make -C messaging-topology-operator api-reference
31+
2932
- name: Push to wiki
33+
# User and email as documented here: https://github.com/marketplace/actions/checkout#push-a-commit-using-the-built-in-token
3034
run: |
3135
cd wiki
32-
git config --local user.email "github-actions@github.com"
33-
git config --local user.name "github-actions"
36+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
37+
git config --local user.name "github-actions[bot]"
3438
# Add the versioned API Reference to the Wiki
3539
cp ../messaging-topology-operator/docs/api/rabbitmq.com.ref.asciidoc ./API_Reference_${{ steps.get_version.outputs.VERSION }}.asciidoc
3640
# Regenerate the ordered list of API Reference docs for the sidebar

0 commit comments

Comments
 (0)