diff --git a/.github/workflows/itcast-build-and-deploy.yml b/.github/workflows/itcast-build-and-deploy.yml index c62d803..205ece6 100644 --- a/.github/workflows/itcast-build-and-deploy.yml +++ b/.github/workflows/itcast-build-and-deploy.yml @@ -10,7 +10,8 @@ jobs: deploy: if: > - github.event.workflow_run.event == 'push' + github.event.workflow_run.workflow == 'ItcastBuildAndTest' && + github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest permissions: contents: read