change: Always deploy if manually started and requested

This commit is contained in:
2025-08-02 20:56:51 +02:00
parent 02f11ac29a
commit f1930eca14
+6 -1
View File
@@ -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