tamu-edu/Terraform Apply a Pull Request
This workflow will run terraform apply on the merge commit of a pull request and upload the output to S3 for persistence.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| debug | Debug workflow with tmate if an error occurs | no | false |
| GITHUB_TOKEN | GitHub token for access to the pull request | yes | — |
| working-directory | Working directory for the `run` actions | no | "" |
| terraform-version | Version of terraform to install | no | latest |
| terraform-workspace | Terraform workspace to select. Must already exist | no | default |
| terraform-init-flags | CLI flags to use with terraform init | no | "" |
| terraform-apply-flags | CLI flags to use with terraform apply | no | "" |
| s3-bucket | Override s3 bucket to upload output to. Defaults to the same as the state backend. | no | "" |
| s3-key | Override s3 object key to upload output to. Defaults to a subdirectory of the statefile key. | no | "" |
| pr-id | Associate the run with a specific pull request id. Defaults to finding the ID from the merge commit. | no | "" |
| auto-approve | Auto approve terraform apply | no | true |
Outputs
| name | description |
|---|---|
| apply_output | The terraform apply output |
| s3_path | The S3 URL of the uploaded log file |