From 3bd4a7a750310aac5d0df95d63411e5d93956247 Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Wed, 28 Aug 2024 11:06:30 +0200 Subject: [PATCH] Exclude build-sdk-package from when skip ci annotation is present --- .github/workflows/ci.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d4583847c438..54916cf31bea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1013,9 +1013,15 @@ jobs: uses: ./.github/workflows/build-msi.yml if : github.event_name == 'pull_request' && contains(github.event.pull_request.body, '[test_msi]') # TODO: ADD A JOB THAT DEPENDS ON THIS TO TEST THE MSI - + build-sdk-package: uses: ./.github/workflows/build-sdk.yml + if: + (github.event_name == 'pull_request' && !contains(github.event.pull_request.body, '[skip ci]')) || + (github.event_name == 'workflow_dispatch' && github.repository == 'scala/scala3') || + (github.event_name == 'schedule' && github.repository == 'scala/scala3') || + github.event_name == 'push' || + github.event_name == 'merge_group' with: java-version: 8