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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
debugDebug workflow with tmate if an error occursnofalse
GITHUB_TOKENGitHub token for access to the pull requestyes
working-directoryWorking directory for the `run` actionsno""
terraform-versionVersion of terraform to installnolatest
terraform-workspaceTerraform workspace to select. Must already existnodefault
terraform-init-flagsCLI flags to use with terraform initno""
terraform-apply-flagsCLI flags to use with terraform applyno""
s3-bucketOverride s3 bucket to upload output to. Defaults to the same as the state backend.no""
s3-keyOverride s3 object key to upload output to. Defaults to a subdirectory of the statefile key.no""
pr-idAssociate the run with a specific pull request id. Defaults to finding the ID from the merge commit.no""
auto-approveAuto approve terraform applynotrue
namedescription
apply_outputThe terraform apply output
s3_pathThe S3 URL of the uploaded log file