Skip to content

Commit 66f317e

Browse files
authored
Merge pull request #10 from tamu-edu/feature/dont-save-artifact
Adds save-artifact option (defaults false)
2 parents 231ba44 + c5064e3 commit 66f317e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ A GitHub composite action for generating and posting a terraform plan to a pull
66
| Name | Description | Default | Required |
77
|------|-------------|---------|:--------:|
88
| debug | Enable `tmate.io` debugging if a failure occurs | `false` | No |
9+
| save-artifact | Save terraform plan as artifact in Github Action | `false` | No |
910

1011
## Outputs
1112

action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ inputs:
88
GITHUB_TOKEN:
99
description: GitHub token for access to the pull request
1010
required: true
11+
save-artifact:
12+
description: Save the terraform plan as an artifact (May contain sensitive data)
13+
required: false
14+
default: "false"
1115
working-directory:
1216
description: Working directory for the `run` actions
1317
required: false
@@ -116,6 +120,7 @@ runs:
116120

117121
- name: Save Artifact
118122
id: save-artifact
123+
if: ${{ inputs.save-artifact == 'true' }}
119124
uses: actions/upload-artifact@v4
120125
with:
121126
name: pr-${{ github.event.pull_request.number }}-${{ inputs.workflow-artifact-name }}

0 commit comments

Comments
 (0)