From 28664a2f9bbff5ca70a8794068978754cc89be87 Mon Sep 17 00:00:00 2001 From: Patrick Lewis Date: Tue, 8 Jun 2021 22:07:34 -0700 Subject: [PATCH] feat(CI): run pr builds on label (#6241) --- .github/workflows/docker_build.yml | 6 +++--- .github/workflows/macos_build.yml | 6 +++--- .github/workflows/windows_build.yml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker_build.yml b/.github/workflows/docker_build.yml index 3e1c383b0..28f82f2d6 100644 --- a/.github/workflows/docker_build.yml +++ b/.github/workflows/docker_build.yml @@ -3,15 +3,15 @@ on: push: branches: - 'master' - pull_request_review: - types: [submitted] + pull_request: + types: ['labeled'] jobs: docker-build-n-deploy: strategy: fail-fast: true runs-on: ubuntu-20.04 - if: github.repository == 'azerothcore/azerothcore-wotlk' + if: github.repository == 'azerothcore/azerothcore-wotlk && ${{ github.event.label.name == 'run-build' }}' env: COMPOSE_DOCKER_CLI_BUILD: 1 DOCKER_BUILDKIT: 1 diff --git a/.github/workflows/macos_build.yml b/.github/workflows/macos_build.yml index 0c79f5169..d2456cf81 100644 --- a/.github/workflows/macos_build.yml +++ b/.github/workflows/macos_build.yml @@ -3,8 +3,8 @@ on: push: branches: - 'master' - pull_request_review: - types: [submitted] + pull_request: + types: ['labeled'] jobs: macos-build: @@ -16,7 +16,7 @@ jobs: # - macos-11.0 runs-on: ${{ matrix.os }} name: ${{ matrix.os }} - if: github.repository == 'azerothcore/azerothcore-wotlk' + if: github.repository == 'azerothcore/azerothcore-wotlk && ${{ github.event.label.name == 'run-build' }}' steps: - uses: actions/checkout@v2 - name: Cache diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml index 960de07c3..89e09fc5e 100644 --- a/.github/workflows/windows_build.yml +++ b/.github/workflows/windows_build.yml @@ -3,8 +3,8 @@ on: push: branches: - 'master' - pull_request_review: - types: [submitted] + pull_request: + types: ['labeled'] jobs: windows-build: @@ -14,7 +14,7 @@ jobs: name: windows-2019-MSVC16 env: BOOST_ROOT: C:\local\boost_1_74_0 - if: github.repository == 'azerothcore/azerothcore-wotlk' + if: github.repository == 'azerothcore/azerothcore-wotlk && ${{ github.event.label.name == 'run-build' }}' steps: - uses: actions/checkout@v2 - name: Configure OS