build(deps): bump hashicorp/random from 3.7.1 to 3.7.2 #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Terraform | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
terraform: | |
name: Terraform | |
runs-on: ubuntu-latest | |
environment: production | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check terraform docs | |
uses: terraform-docs/[email protected] | |
with: | |
fail-on-diff: true | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
- name: Terraform Init | |
run: terraform init | |
- name: Terraform Format | |
run: terraform fmt -check | |
- name: Terraform Plan | |
run: terraform plan -input=false | |
- name: Terraform Apply | |
if: github.ref == 'refs/heads/"main"' && github.event_name == 'push' | |
run: terraform apply -auto-approve -input=false |