Skip to content

Commit 3bc794b

Browse files
authored
Allow overriding the docfx folder name on manual runs (#8984)
1 parent 8b1c525 commit 3bc794b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/docfx_manual.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: 'DocFx'
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
name:
7+
description: 'The name to use for the documentation folder (defaults to the name of the current ref)'
8+
type: 'string'
9+
required: false
510

611
jobs:
712
docfx:
@@ -14,4 +19,8 @@ jobs:
1419
uses: ./.github/workflows/docfx.yml
1520
with:
1621
target_branch: 'refdoc'
22+
# An omitted input still arrives as an empty string, which would override
23+
# the default declared in docfx.yml and target the refdoc root, so the
24+
# fallback has to be applied here.
25+
name: ${{ inputs.name || github.ref_name }}
1726
secrets: 'inherit'

0 commit comments

Comments
 (0)