diff --git a/.github/workflows/itcast-build-and-deploy.yml b/.github/workflows/itcast-build-and-deploy.yml index 583b3b8..9fd9f96 100644 --- a/.github/workflows/itcast-build-and-deploy.yml +++ b/.github/workflows/itcast-build-and-deploy.yml @@ -2,12 +2,15 @@ name: ItcastBuildAndDeploy on: workflow_run: - workflows: ["ItcastBuildAndTest"] + workflows: + - ItcastBuildAndTest types: - completed jobs: deploy: + if: > + github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest permissions: contents: read