Skip to content

Commit 2852399

Browse files
committed
Hotfix 2: adds always() to if clause w/forceDeploy option so that it gets considered
1 parent 1c3b839 commit 2852399

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/deploy.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
forceDeploy:
77
description: "Redeploy GCP functions even if they haven't changed"
88
required: false
9-
default: false
109
type: boolean
1110
push:
1211
branches:
@@ -33,7 +32,7 @@ jobs:
3332

3433
deploy-convert-ids:
3534
needs: path-changes
36-
if: ${{ needs.path-changes.outputs.convert_ids == 'true' || inputs.forceDeploy == 'true' }}
35+
if: ${{ always() && (needs.path-changes.outputs.convert_ids == 'true' || inputs.forceDeploy == 'true') }}
3736
uses: ./.github/workflows/deploy-func.yaml
3837
with:
3938
func-name: "gpz-convert-ids"
@@ -45,7 +44,7 @@ jobs:
4544

4645
deploy-ml:
4746
needs: path-changes
48-
if: ${{ needs.path-changes.outputs.ml == 'true' || inputs.forceDeploy == 'true' }}
47+
if: ${{ always() && (needs.path-changes.outputs.ml == 'true' || inputs.forceDeploy == 'true') }}
4948
uses: ./.github/workflows/deploy-func.yaml
5049
with:
5150
func-name: "gpz-ml"

0 commit comments

Comments
 (0)