From fcf22c743ad1138181a4ece8aaf70fdca020d32e Mon Sep 17 00:00:00 2001 From: Nish Anil Date: Wed, 8 Dec 2021 22:33:48 +0530 Subject: [PATCH] Update podcast-web.yml --- .github/workflows/podcast-web.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/podcast-web.yml b/.github/workflows/podcast-web.yml index 7733240..6f1b042 100644 --- a/.github/workflows/podcast-web.yml +++ b/.github/workflows/podcast-web.yml @@ -78,7 +78,7 @@ jobs: needs: build environment: name: prod - if: ${{ github.ref == 'refs/heads/main' }} + 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 @@ -120,4 +120,4 @@ jobs: uses: Azure/webapps-deploy@v2 with: app-name: ${{ secrets.WEBAPP_NAME }} - package: web \ No newline at end of file + package: web