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