From 61688b896dd396e1cc43d59ac6687ec8e33f9d4d Mon Sep 17 00:00:00 2001 From: David Houweling Date: Sun, 1 Dec 2024 18:44:54 +1100 Subject: [PATCH] harden deploy (#28) --- .github/workflows/deploy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 40b59fd..6bad29f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,16 @@ name: Deploy on: + workflow_dispatch: + inputs: + debug: + description: "Debug the event payload" + required: false + type: boolean workflow_run: workflows: [Build] - types: - - completed + types: [completed] + branches: [main] jobs: deploy: @@ -14,6 +20,7 @@ jobs: timeout-minutes: 10 steps: - name: Debug + if: ${{ github.event.inputs.debug == true }} run: ${{ tojson(github.event) }} shell: cat {0}