File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,9 +4,6 @@ description: 'Generate metadata using docfx'
44
55inputs :
66# Required
7- artifact-name :
8- description : ' Name of the artifact to upload after generating documentation'
9- required : true
107 docfx-json-manifest :
118 description : ' Path to the docfx JSON manifest file'
129 required : true
Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ inputs:
1212 commit-message :
1313 description : ' The commit message to use when pushing changes.'
1414 required : true
15- artifact-name :
16- description : ' Name of the artifact to download before pushing changes.'
17- required : true
1815# Optional
1916 dotnet_sdk_version :
2017 description : ' .NET SDK version. Default: 9.x'
2118 required : false
2219 default : ' 9.x'
20+ artifact-name :
21+ description : ' Name of the artifact to download before pushing changes.'
22+ required : false
2323 force-checkout :
2424 description : ' Force checkout the target branch, discarding local changes.'
2525 required : false
3333 uses : actions/setup-dotnet@v4
3434 with :
3535 dotnet-version : ${{ env.dotnet-sdk-version }}
36- - name : Download a single artifact
36+ - if : ${{ inputs.artifact-name }}
37+ name : Download a single artifact
3738 uses : actions/download-artifact@v4
3839 with :
3940 name : ${{ inputs.artifact-name }}
Original file line number Diff line number Diff line change @@ -221,15 +221,13 @@ jobs:
221221 - name : ' Generate assembly metadata'
222222 uses : ./.github/actions/docfx-metadata
223223 with :
224- artifact-name : ' assembly-metadata'
225224 docfx-json-manifest : ' assembly-metadata.json'
226225 temporary-directory : ' temp'
227226 output-directory : ' ${{ env.friendly-version }}'
228227 working-directory : ' ./api-reference'
229228 - name : ' Push documentation to ${{ github.head_ref || github.ref }} branch'
230229 uses : ./.github/actions/push-changes
231230 with :
232- artifact-name : ' assembly-metadata'
233231 target-branch : ${{ github.head_ref || github.ref }}
234232 commit-message : ' Update docs for version ${{ env.friendly-version }}'
235233 force : false
You can’t perform that action at this time.
0 commit comments