Skip to content

Commit 7bddef4

Browse files
authored
Merge pull request #9 from tamu-edu/feature/workflow-artifact-name
Adds unique name input for the plan artifact
2 parents 0031319 + 6f54065 commit 7bddef4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ inputs:
2828
description: CLI flags to use with terraform plan
2929
required: false
3030
default: ""
31+
workflow-artifact-name:
32+
description: Provides a unique name to append to the plan artifact attached to this workflow run. Default: tfplan
33+
required: false
34+
default: "tfplan"
3135

3236

3337
outputs:
@@ -114,7 +118,7 @@ runs:
114118
id: save-artifact
115119
uses: actions/upload-artifact@v4
116120
with:
117-
name: pr-${{ github.event.pull_request.number }}-tfplan
121+
name: pr-${{ github.event.pull_request.number }}-${{ inputs.workflow-artifact-name }}
118122
path: ${{ github.workspace }}/${{ inputs.working-directory }}/tfplan
119123
env:
120124
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)