Skip to content

Commit 218d383

Browse files
committed
feat(workflow): add branch input to deploy workflow and remove unused Terragrunt output step
Introduce a new branch input to the workflow_dispatch trigger, allowing manual deployments to explicitly specify which branch to deploy. The input defaults to the current github.ref_name, improving flexibility for ad‑hoc or multi-branch deployment workflows. Additionally, remove the previously commented-out Terragrunt output step to reduce noise and keep the workflow clean. No functional behavior is changed beyond enabling branch selection.
1 parent 203c978 commit 218d383

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
# branches that match deploy-* will deploy as well
1111
- deploy-*
1212
workflow_dispatch:
13+
inputs:
14+
branch:
15+
description: "Branch to deploy"
16+
required: true
17+
default: ${{ github.ref_name }}
1318

1419
env:
1520
working_dir: terragrunt/live/website
@@ -49,15 +54,6 @@ jobs:
4954
tg_dir: ${{ env.working_dir }}
5055
tg_command: apply
5156

52-
# - name: Terragrunt Output
53-
# uses: gruntwork-io/terragrunt-action@v3
54-
# env:
55-
# TG_TF_FORWARD_STDOUT: 1
56-
# TG_NO_COLOR: 1
57-
# with:
58-
# tg_dir: ${{ env.working_dir }}
59-
# tg_command: output
60-
6157
- name: Read Values
6258
id: terragrunt_output
6359
run: |

0 commit comments

Comments
 (0)