Merge pull request #218 from mira-miracoli/upload-new-cloud #638
This file contains 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: Validate Terraform | |
on: | |
push: | |
pull_request: | |
jobs: | |
terraform-validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: terraform-validate | |
uses: dflook/[email protected] | |
env: | |
TERRAFORM_PRE_RUN: | | |
rm *.tfstate | |
- name: Validate failed | |
if: ${{ failure() && steps.validate.outputs.failure-reason == 'validate-failed' }} | |
run: echo "terraform validate failed" |