Skip to content

Commit

Permalink
Hotfix: adds option to deploy workflow to force function redeployment…
Browse files Browse the repository at this point in the history
… when dispatching manually
  • Loading branch information
falquaddoomi committed Oct 4, 2024
1 parent 95ffc54 commit 1c3b839
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Deploy backend functions and frontend app

on:
workflow_dispatch:
inputs:
forceDeploy:
description: "Redeploy GCP functions even if they haven't changed"
required: false
default: false
type: boolean
push:
branches:
- main
Expand All @@ -27,7 +33,7 @@ jobs:

deploy-convert-ids:
needs: path-changes
if: ${{ needs.path-changes.outputs.convert_ids == 'true' }}
if: ${{ needs.path-changes.outputs.convert_ids == 'true' || inputs.forceDeploy == 'true' }}
uses: ./.github/workflows/deploy-func.yaml
with:
func-name: "gpz-convert-ids"
Expand All @@ -39,7 +45,7 @@ jobs:

deploy-ml:
needs: path-changes
if: ${{ needs.path-changes.outputs.ml == 'true' }}
if: ${{ needs.path-changes.outputs.ml == 'true' || inputs.forceDeploy == 'true' }}
uses: ./.github/workflows/deploy-func.yaml
with:
func-name: "gpz-ml"
Expand Down

0 comments on commit 1c3b839

Please sign in to comment.