diff --git a/README.adoc b/README.adoc index 504a3e1..43fd124 100644 --- a/README.adoc +++ b/README.adoc @@ -121,16 +121,22 @@ permissions: jobs: update-antora-ui-spring: runs-on: ubuntu-latest - name: Update Antora UI Spring + name: Update strategy: matrix: - branch: ['main', 'docs-build'] + branch: [ '5.8.x', '6.1.x', '6.2.x', 'main' ] steps: - - uses: spring-io/spring-docs-actions/update-antora-spring-ui@{ACTION_VERSION} - name: Update antora-playbook.yml + - uses: spring-io/spring-doc-actions/update-antora-spring-ui@{ACTION_VERSION} + name: Update on Supported Branches with: docs-branch: ${{ matrix.branch }} token: ${{ secrets.GITHUB_TOKEN }} + antora-file-path: 'docs/antora-playbook.yml' + - uses: spring-io/spring-doc-actions/update-antora-spring-ui@{ACTION_VERSION} + name: Update on docs-build + with: + docs-branch: 'docs-build' + token: ${{ secrets.GITHUB_TOKEN }} ---- 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. diff --git a/update-antora-spring-ui/action.yml b/update-antora-spring-ui/action.yml index 465ed0f..d544ed6 100644 --- a/update-antora-spring-ui/action.yml +++ b/update-antora-spring-ui/action.yml @@ -19,6 +19,8 @@ runs: using: "composite" steps: - uses: actions/checkout@v4 + with: + ref: ${{ inputs.docs-branch }} - id: generate-branch-name name: Generate Branch Name run: echo "branch-name=${{ inputs.docs-branch }}_${{ inputs.workflow-branch-suffix }}" >> $GITHUB_OUTPUT