mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
change: Always deploy if manually started and requested
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user