mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Add 'trigger-docs-build' workflow
This commit is contained in:
parent
ae03e0c04c
commit
593ce27cae
25
.github/workflows/trigger-docs-build.yml
vendored
Normal file
25
.github/workflows/trigger-docs-build.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: Trigger Docs Build
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
build-refname:
|
||||||
|
description: Enter git refname to build (e.g., 1.0.x).
|
||||||
|
required: false
|
||||||
|
build-version:
|
||||||
|
description: Enter the version being build (e.g. 1.0.3-SNAPSHOT)
|
||||||
|
required: false
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
if: github.repository_owner == 'spring-projects'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check Out
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
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 }}
|
Loading…
Reference in New Issue
Block a user