diff --git a/.github/workflows/itcast-build-and-deploy.yml b/.github/workflows/itcast-build-and-deploy.yml index 0eae7743..3e0472b1 100644 --- a/.github/workflows/itcast-build-and-deploy.yml +++ b/.github/workflows/itcast-build-and-deploy.yml @@ -5,15 +5,15 @@ on: workflows: ["BuildAndTest"] types: - completed - jobs: deploy: + if: > + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.event == 'push' runs-on: ubuntu-latest permissions: contents: read packages: write - deployments: write - if: github.event.workflow_run.conclusion == 'success' steps: