From 1c3b83912a4159d478dd6a1e3341d9b8c5777676 Mon Sep 17 00:00:00 2001 From: Faisal Alquaddoomi Date: Fri, 4 Oct 2024 15:00:48 -0600 Subject: [PATCH] Hotfix: adds option to deploy workflow to force function redeployment when dispatching manually --- .github/workflows/deploy.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 128aad8..0b43dbd 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 @@ -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" @@ -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"