feat(CI): run pr builds on label (#6241)
This commit is contained in:
@@ -3,15 +3,15 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
pull_request_review:
|
pull_request:
|
||||||
types: [submitted]
|
types: ['labeled']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker-build-n-deploy:
|
docker-build-n-deploy:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
if: github.repository == 'azerothcore/azerothcore-wotlk && ${{ github.event.label.name == 'run-build' }}'
|
||||||
env:
|
env:
|
||||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
pull_request_review:
|
pull_request:
|
||||||
types: [submitted]
|
types: ['labeled']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
macos-build:
|
macos-build:
|
||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
# - macos-11.0
|
# - macos-11.0
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }}
|
name: ${{ matrix.os }}
|
||||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
if: github.repository == 'azerothcore/azerothcore-wotlk && ${{ github.event.label.name == 'run-build' }}'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Cache
|
- name: Cache
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
pull_request_review:
|
pull_request:
|
||||||
types: [submitted]
|
types: ['labeled']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows-build:
|
windows-build:
|
||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
name: windows-2019-MSVC16
|
name: windows-2019-MSVC16
|
||||||
env:
|
env:
|
||||||
BOOST_ROOT: C:\local\boost_1_74_0
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Configure OS
|
- name: Configure OS
|
||||||
|
|||||||
Reference in New Issue
Block a user