From 5e42a51b4ddc4b1e916f70b8f59b7dd2d2f3aaa0 Mon Sep 17 00:00:00 2001 From: Nish Anil Date: Wed, 8 Dec 2021 22:20:25 +0530 Subject: [PATCH] Update podcast-api.yml --- .github/workflows/podcast-api.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/podcast-api.yml b/.github/workflows/podcast-api.yml index 8e0fe24..8659f18 100644 --- a/.github/workflows/podcast-api.yml +++ b/.github/workflows/podcast-api.yml @@ -34,7 +34,7 @@ jobs: run: docker build -f ./src/Services/Podcasts/Podcast.Ingestion.Worker/Dockerfile -t ${{ secrets.ACR_NAME }}.azurecr.io/podcastingestionworker:${{ github.sha }} . build-and-push: - if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.merged == true) }} + if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch') }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -77,7 +77,7 @@ jobs: needs: build-and-push environment: name: prod - if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.merged == true) }} + if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch') }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2