From f1930eca141c16c06958ccad9ebb6ee202611389 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sat, 2 Aug 2025 20:56:51 +0200 Subject: [PATCH] change: Always deploy if manually started and requested --- .github/workflows/deploy.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index fb9df0e..f73dc82 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -2,6 +2,11 @@ name: Deploy to Swarm on: workflow_dispatch: + inputs: + deploy: + description: 'Should we deploy?' + required: true + type: boolean push: paths: - 'docker/**' @@ -32,7 +37,7 @@ jobs: id: check run: | echo "Changed envs: '${{ needs.fact-finding.outputs.changed_envs }}'" - if [[ "${{ needs.fact-finding.outputs.changed_envs }}" =~ "${{ matrix.env }}" ]]; then + if [[ ${{ github.event_name }} == 'workflow_dispatch' && "${{ github.event.inputs.deploy }}" == 'true' || "${{ needs.fact-finding.outputs.changed_envs }}" =~ "${{ matrix.env }}" ]]; then echo "should_deploy=true" >> $GITHUB_OUTPUT else echo "should_deploy=false" >> $GITHUB_OUTPUT