forked from spring-projects/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 900 Bytes
/
Copy pathtrigger-docs-build.yml
File metadata and controls
29 lines (29 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Trigger Docs Build
on:
push:
branches: main
paths: [ 'antora/*' ]
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:
trigger-docs-build:
name: Trigger Docs Build
runs-on: ${{ vars.UBUNTU_SMALL || 'ubuntu-latest' }}
if: github.repository_owner == 'spring-projects'
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 }}