You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
927 B
31 lines
927 B
name: Trigger Docs Build |
|
on: |
|
push: |
|
branches: 'main' |
|
paths: [ 'antora/*' ] |
|
workflow_dispatch: |
|
inputs: |
|
build-refname: |
|
description: 'Git refname to build (e.g., 1.0.x)' |
|
required: false |
|
build-version: |
|
description: 'Version being build (e.g. 1.0.3-SNAPSHOT)' |
|
required: false |
|
permissions: |
|
contents: read |
|
jobs: |
|
trigger-docs-build: |
|
name: Trigger Docs Build |
|
if: github.repository_owner == 'spring-projects' |
|
runs-on: ${{ vars.UBUNTU_SMALL || 'ubuntu-latest' }} |
|
permissions: |
|
actions: write |
|
steps: |
|
- name: Check Out |
|
uses: actions/checkout@v6 |
|
with: |
|
ref: docs-build |
|
- name: Trigger Workflow |
|
env: |
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
run: gh workflow run deploy-docs.yml -r docs-build -f build-refname=${{ github.event.inputs.build-refname }} -f build-version=${{ github.event.inputs.build-version }}
|
|
|