Skip to content

Commit 1c9f792

Browse files
🩹 [Add]: Introduce ArtifactName input parameter for artifact upload flexibility in workflows
1 parent 9921397 commit 1c9f792

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎.github/workflows/Action-Test.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
with:
3434
Name: PSModuleTest
3535
Path: tests/srcTestRepo
36+
ArtifactName: PSModuleTestDefault
3637

3738
ActionTestMinimal:
3839
name: Action-Test - [Minimal]
@@ -49,6 +50,7 @@ jobs:
4950
with:
5051
Name: PSModuleTest
5152
Path: tests/srcMinimalTestRepo
53+
ArtifactName: PSModuleTestMinimal
5254

5355
ActionTestWithManifest:
5456
name: Action-Test - [DefaultWithManifest]
@@ -65,3 +67,4 @@ jobs:
6567
with:
6668
Name: PSModuleTest
6769
Path: tests/srcWithManifestTestRepo
70+
ArtifactName: PSModuleTestWithManifest

‎action.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ inputs:
1313
description: Path to the folder where the modules are located.
1414
required: false
1515
default: ${{ github.workspace }}
16+
ArtifactName:
17+
description: Name of the artifact to upload.
18+
required: false
19+
default: 'module'
1620
Debug:
1721
description: Enable debug output.
1822
required: false
@@ -50,7 +54,7 @@ runs:
5054
- name: Upload module artifact
5155
uses: actions/upload-artifact@v4
5256
with:
53-
name: module
57+
name: ${{ input.ArtifactName }}
5458
path: ${{ inputs.Path }}/outputs/module/${{ fromJson(steps.build.outputs.result).ModuleName }}
5559
if-no-files-found: error
5660
retention-days: 1

0 commit comments

Comments
 (0)