Simplified example of using Terraform and Github Actions Together.
The Terraform code is not substantial. This example is to demonstrate worflows for PRs and merges.
Do not use this code without Branch Protection enabled!
At the very least you should Require status checks before merging enabled and set to "Strict" such that the "Require branches to be up to date before merging" checkbox is checked.