Skip to content

Commit

Permalink
Fix conditional check to allow manual invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed-dash committed Sep 15, 2024
1 parent d37f255 commit 3c8b0ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:

jobs:
deploy_backend_gcf: # Only deploy if build_and_test was successful on master
if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/master' }}
if: ${{ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'workflow_dispatch' }} && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
--member="serviceAccount:$SVC_ACCOUNT_EMAIL"
deploy_ui_cr:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/master' }}
if: ${{ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'workflow_dispatch' }} && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 3c8b0ec

Please sign in to comment.