diff --git a/.github/workflows/itcast-build-and-deploy.yml b/.github/workflows/itcast-build-and-deploy.yml index 9fd9f96d..7f6de6ec 100644 --- a/.github/workflows/itcast-build-and-deploy.yml +++ b/.github/workflows/itcast-build-and-deploy.yml @@ -2,10 +2,9 @@ name: ItcastBuildAndDeploy on: workflow_run: - workflows: - - ItcastBuildAndTest + workflows: ["ItcastBuildAndTest"] types: - - completed + - success jobs: deploy: @@ -20,14 +19,6 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Download build artifact - uses: actions/download-artifact@v3 - with: - name: build-results - - - name: Debug workflow_run event - run: echo "${{ toJson(github.event) }}" - - name: Set up JDK 17 uses: actions/setup-java@v3 with: diff --git a/.github/workflows/itcast-build-and-test.yml b/.github/workflows/itcast-build-and-test.yml index 9a5b6293..d917a881 100644 --- a/.github/workflows/itcast-build-and-test.yml +++ b/.github/workflows/itcast-build-and-test.yml @@ -51,10 +51,4 @@ jobs: - name: Tear down Docker Compose if: always() - run: docker-compose down - - - name: Upload build artifact - uses: actions/upload-artifact@v3 - with: - name: build-results - path: build/libs/*.jar \ No newline at end of file + run: docker-compose down \ No newline at end of file