add support for fail_on_detected_diff

more logging -- is it working?

more logging -- is it working? rerelease

fix logging 2

more logging

more logging

add fail_on_detected_diff

add fail_on_detected_diff 2

add fail_on_detected_diff 3

add fail_on_detected_diff 4 fix

plan_fail id; two test

more debug

more debug - try getBooleanInput

more debug - try getBooleanInput : add debug to raw js code

more debug - try getBooleanInput : add debug stdout to raw js code

try using "fail" as trigger instead of boolean
This commit is contained in:
David Chwalisz 2023-01-30 14:09:10 -06:00
parent a75f1a3cce
commit 89704370b3
5 changed files with 170 additions and 30 deletions

View file

@ -0,0 +1,47 @@
name: "build-test"
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- develop
- fail_on_detected_diff
jobs:
exitcode:
name: 'Terraform Run Local Exitcode'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./.github/workflows/data/local
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Terraform
uses: ./
with:
fail_on_detected_diff: true
- name: Terraform Init
shell: bash
run: terraform init
# - name: Terraform Format
# shell: bash
# run: terraform fmt -check
#
- name: Terraform Plan
id: plan
shell: bash
run: terraform plan
- name: Terraform Plan (fail)
id: plan_fail
shell: bash
run: terraform plan -detailed-exitcode
#
# - name: Print Terraform Plan
# shell: bash
# run: echo "${{ steps.plan.outputs.stdout }}"