From ebf7f7583bb32d03e120208a87d4092f462aa0f2 Mon Sep 17 00:00:00 2001 From: sudlud Date: Sun, 22 Dec 2024 09:02:15 +0100 Subject: [PATCH] fix(CI): do not run on draft PRs (#21009) --- .github/workflows/codestyle.yml | 2 +- .github/workflows/core-build-nopch.yml | 2 +- .github/workflows/core_modules_build.yml | 2 +- .github/workflows/pr_labeler.yml | 2 +- .github/workflows/sql-codestyle.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 74f93205041482..f30e5337529bf0 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -10,7 +10,7 @@ jobs: triage: runs-on: ubuntu-latest name: C++ - if: github.repository == 'azerothcore/azerothcore-wotlk' + if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft steps: - uses: actions/checkout@v4 - name: Setup python diff --git a/.github/workflows/core-build-nopch.yml b/.github/workflows/core-build-nopch.yml index a72f9c6cc374ce..e64fbffcc0f640 100644 --- a/.github/workflows/core-build-nopch.yml +++ b/.github/workflows/core-build-nopch.yml @@ -33,7 +33,7 @@ jobs: CXX: g++-14 runs-on: ${{ matrix.os }} name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-nopch - if: github.repository == 'azerothcore/azerothcore-wotlk' + if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft steps: - uses: actions/checkout@v4 - uses: ./.github/actions/linux-build diff --git a/.github/workflows/core_modules_build.yml b/.github/workflows/core_modules_build.yml index 2516de27e3a3a6..440225a08d1b9a 100644 --- a/.github/workflows/core_modules_build.yml +++ b/.github/workflows/core_modules_build.yml @@ -31,7 +31,7 @@ jobs: CXX: clang++-18 runs-on: ${{ matrix.os }} name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-nopch-modules - if: github.repository == 'azerothcore/azerothcore-wotlk' + if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft steps: - uses: actions/checkout@v4 # This script installs a general list of modules to compile with diff --git a/.github/workflows/pr_labeler.yml b/.github/workflows/pr_labeler.yml index 21b73fc842f51f..1c3632972a79f3 100644 --- a/.github/workflows/pr_labeler.yml +++ b/.github/workflows/pr_labeler.yml @@ -6,7 +6,7 @@ jobs: triage: runs-on: ubuntu-24.04 permissions: write-all - if: github.repository == 'azerothcore/azerothcore-wotlk' + if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/sql-codestyle.yml b/.github/workflows/sql-codestyle.yml index cfd83fe073e9b3..a0208871609ac6 100644 --- a/.github/workflows/sql-codestyle.yml +++ b/.github/workflows/sql-codestyle.yml @@ -10,7 +10,7 @@ jobs: triage: runs-on: ubuntu-latest name: SQL - if: github.repository == 'azerothcore/azerothcore-wotlk' + if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft steps: - uses: actions/checkout@v4 - name: Check pending SQL