Skip to content

Commit 954226e

Browse files
committed
refactored ci
1 parent c9c0c99 commit 954226e

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ description: 'Generate metadata using docfx'
44

55
inputs:
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

.github/actions/push-changes/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
@@ -33,7 +33,8 @@ runs:
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 }}

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)