From 9f82b09c4fe151e6a284544c36f99b612712dde6 Mon Sep 17 00:00:00 2001 From: j4y <36337+j4y@users.noreply.github.com> Date: Thu, 22 Jan 2026 19:58:59 -0500 Subject: [PATCH] feat(workflow): add branch input to deploy workflow and remove unused Terragrunt output step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .github/workflows/deploy.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0dc7e45..980c6a5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,6 +10,11 @@ on: # branches that match deploy-* will deploy as well - deploy-* workflow_dispatch: + inputs: + branch: + description: "Branch to deploy" + required: true + default: ${{ github.ref_name }} env: working_dir: terragrunt/live/website @@ -49,15 +54,6 @@ jobs: tg_dir: ${{ env.working_dir }} tg_command: apply - # - name: Terragrunt Output - # uses: gruntwork-io/terragrunt-action@v3 - # env: - # TG_TF_FORWARD_STDOUT: 1 - # TG_NO_COLOR: 1 - # with: - # tg_dir: ${{ env.working_dir }} - # tg_command: output - - name: Read Values id: terragrunt_output run: |