Skip to content

Commit c024d30

Browse files
Polish update-antora-ui-spring action
Improved README by adding an example when branches have a different antora file path Fixed an error where the checkout step did not clone the right branch
1 parent 9ab6029 commit c024d30

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.adoc

+10-4
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,22 @@ permissions:
121121
jobs:
122122
update-antora-ui-spring:
123123
runs-on: ubuntu-latest
124-
name: Update Antora UI Spring
124+
name: Update
125125
strategy:
126126
matrix:
127-
branch: ['main', 'docs-build']
127+
branch: [ '5.8.x', '6.1.x', '6.2.x', 'main' ]
128128
steps:
129-
- uses: spring-io/spring-docs-actions/update-antora-spring-ui@{ACTION_VERSION}
130-
name: Update antora-playbook.yml
129+
- uses: spring-io/spring-doc-actions/update-antora-spring-ui@{ACTION_VERSION}
130+
name: Update on Supported Branches
131131
with:
132132
docs-branch: ${{ matrix.branch }}
133133
token: ${{ secrets.GITHUB_TOKEN }}
134+
antora-file-path: 'docs/antora-playbook.yml'
135+
- uses: spring-io/spring-doc-actions/update-antora-spring-ui@{ACTION_VERSION}
136+
name: Update on docs-build
137+
with:
138+
docs-branch: 'docs-build'
139+
token: ${{ secrets.GITHUB_TOKEN }}
134140
----
135141

136142
The PR will only be created if there is no open PR for the same branch, even if there is a newer version of Antora UI Spring.

update-antora-spring-ui/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ runs:
1919
using: "composite"
2020
steps:
2121
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ inputs.docs-branch }}
2224
- id: generate-branch-name
2325
name: Generate Branch Name
2426
run: echo "branch-name=${{ inputs.docs-branch }}_${{ inputs.workflow-branch-suffix }}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)