Move docs-build update to new job to avoid concurrency issues with matrix strategy

Issue gh-15106
This commit is contained in:
Marcus Hert Da Coregio 2024-05-20 13:39:34 -03:00
parent 3582673cac
commit 984939b5f7
1 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,8 @@
name: Update Antora UI Spring
on:
schedule:
- cron: '0 10 * * *' # Once per day at 10am UTC
workflow_dispatch:
permissions:
@ -11,19 +13,23 @@ permissions:
jobs:
update-antora-ui-spring:
runs-on: ubuntu-latest
name: Update
name: Update on Supported Branches
strategy:
matrix:
branch: [ '5.8.x', '6.1.x', '6.2.x', 'main' ]
steps:
- uses: spring-io/spring-doc-actions/update-antora-spring-ui@17ed79ea5fbd65813c69ef1062a024d4a37ff0ca
name: Update on Supported Branches
name: Update
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@17ed79ea5fbd65813c69ef1062a024d4a37ff0ca
update-antora-ui-spring-docs-build:
runs-on: ubuntu-latest
name: Update on docs-build
steps:
- uses: spring-io/spring-doc-actions/update-antora-spring-ui@17ed79ea5fbd65813c69ef1062a024d4a37ff0ca
name: Update
with:
docs-branch: 'docs-build'
token: ${{ secrets.GITHUB_TOKEN }}