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