Skip to content

Commit 970542f

Browse files
committed
fixed inputs and variables resolution
1 parent cb0f7af commit 970542f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/actions/docfx-metadata/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ inputs:
99
docfx-json-manifest:
1010
description: 'Path to the docfx JSON manifest file'
1111
required: true
12-
assembly-version:
13-
description: 'Assembly version to use for the generated metadata'
12+
output-directory:
13+
description: 'Target directory for generated documentation'
1414
required: true
1515
# Optional
1616
dotnet_sdk_version:
@@ -31,7 +31,7 @@ runs:
3131
run: dotnet tool update -g docfx
3232
shell: bash
3333
- name: 'Generate documentation'
34-
run: docfx metadata ${{ inputs.docfx-json-manifest }} --output ./api-reference/${{ inputs.assembly-version }}
34+
run: docfx metadata ${{ inputs.docfx-json-manifest }} --output ${{ inputs.output-directory }}
3535
shell: bash
3636
- name: Upload artifact
3737
uses: actions/upload-artifact@v4

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ jobs:
217217
artifact-name: 'assembly-metadata'
218218
docfx-json-manifest: './api-reference/assembly-metadata.json'
219219
assembly-version: ${{ needs.versioning.outputs.friendly-version }}
220-
target-directory: './api-reference/${{ env.friendly-version }}/'
220+
output-directory: './api-reference/${{ env.friendly-version }}/'
221221
- name: 'Push documentation to ${{ github.head_ref || github.ref }} branch'
222222
uses: ./.github/actions/push-changes
223223
with:

0 commit comments

Comments
 (0)