feat(DMVP-2706): add option to autmatically run apply if plan was suc… #30
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: Terraform Test | |
on: | |
pull_request: | |
push: | |
branches: [main, master] | |
jobs: | |
terraform-validate: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
path: | |
- ./ | |
- modules/variable-set | |
permissions: | |
actions: write | |
contents: write | |
discussions: write | |
pull-requests: write | |
steps: | |
- uses: dasmeta/reusable-actions-workflows/terraform-test@main | |
with: | |
aws-region: ${{ secrets.AWS_REGION}} | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
path: ${{ matrix.path }} | |
continue-on-error: true |