From 765b7085d64e2e52ac796b6e82397783f030b1eb Mon Sep 17 00:00:00 2001 From: Service Account Date: Sat, 2 Dec 2023 08:37:47 +0700 Subject: [PATCH] Correct condition for nighty build to trigger noti-discord --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15820e90e..cdca0f3c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -344,7 +344,7 @@ jobs: if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' with: name: nitro-win-amd64 - path: ./nitro + path: ./build/Release - name: Run e2e testing shell: cmd @@ -415,7 +415,7 @@ jobs: if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' with: name: nitro-win-amd64 - path: ./nitro + path: ./build/Release - name: run e2e testing shell: cmd @@ -446,8 +446,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} noti-discord: - if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' - needs: [ubuntu-amd64-build, ubuntu-amd64-cuda-build, macOS-M-build, macOS-Intel-build, windows-amd64-build, windows-amd64-cuda-build] + if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && (needs.create-draft-release.result == 'success' || needs.create-draft-release.result == 'skipped') && needs.ubuntu-amd64-build.result == 'success' && needs.ubuntu-amd64-cuda-build.result == 'success' && needs.macOS-M-build.result == 'success' && needs.macOS-Intel-build.result == 'success' && needs.windows-amd64-build.result == 'success' && needs.windows-amd64-cuda-build.result == 'success' + needs: [create-draft-release, ubuntu-amd64-build, ubuntu-amd64-cuda-build, macOS-M-build, macOS-Intel-build, windows-amd64-build, windows-amd64-cuda-build] runs-on: ubuntu-latest steps: - name: Notify Discord