Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions alz/github/actions/bicep/main/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
inputs:
skip_what_if:
description: 'Skip What If Check?'
default: false
type: boolean
default: false
%{ for script_file_group in script_file_groups ~}
${script_file_group.name}:
description: 'Run Steps: ${script_file_group.displayName}'
Expand All @@ -18,8 +18,8 @@ on:
%{ endfor ~}
destroy:
description: '[DANGER!] Destroy? [DANGER!]'
default: false
type: boolean
default: false

jobs:
plan_and_apply:
Expand All @@ -29,8 +29,8 @@ jobs:
id-token: write
contents: read
with:
skip_what_if: $${{ inputs.skip_what_if }}
destroy: $${{ inputs.destroy }}
skip_what_if: $${{ github.event_name != 'workflow_dispatch' && false || inputs.skip_what_if == true }}
destroy: $${{ github.event_name != 'workflow_dispatch' && false || inputs.destroy == true }}
%{ for script_file in script_files ~}
${script_file.name}: $${{ inputs.${script_file.group} }}
${script_file.name}: $${{ github.event_name != 'workflow_dispatch' && true || inputs.${script_file.group} == true }}
%{ endfor ~}
10 changes: 10 additions & 0 deletions alz/github/actions/bicep/templates/workflows/cd-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
PARAMETERS_FILE_NAME: parameters.json

steps:
- name: Show inputs
run: |
Write-Host '$${{ toJson(inputs) }}'
shell: pwsh

- name: Checkout Bicep Module
uses: actions/checkout@v4

Expand Down Expand Up @@ -107,6 +112,11 @@ jobs:
PARAMETERS_FILE_NAME: parameters.json

steps:
- name: Show inputs
run: |
Write-Host '$${{ toJson(inputs) }}'
shell: pwsh

- name: Checkout Bicep Module
uses: actions/checkout@v4

Expand Down
Loading