fix(CI): re-run builds if label is present (#9114)

This commit is contained in:
Francesco Borzì
2021-11-10 16:31:42 +01:00
committed by GitHub
parent 06bc64d1c3
commit c519dc5738
6 changed files with 11 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ on:
branches: branches:
- 'master' - 'master'
pull_request: pull_request:
types: ['labeled'] types: ['labeled', 'labeled', 'opened', 'synchronize', 'reopened']
concurrency: concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }}) group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
@@ -33,7 +33,7 @@ jobs:
name: ${{ matrix.os }}-${{ matrix.compiler }} name: ${{ matrix.os }}-${{ matrix.compiler }}
env: env:
COMPILER: ${{ matrix.compiler }} COMPILER: ${{ matrix.compiler }}
if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.event.label.name == 'run-build' || github.event.label.name == 'file-cpp' || github.ref == 'refs/heads/master') if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'file-cpp') || github.event.label.name == 'file-cpp' || contains(github.event.pull_request.labels.*.name, 'run-build') || github.event.label.name == 'run-build')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Cache - name: Cache

View File

@@ -4,7 +4,7 @@ on:
branches: branches:
- 'master' - 'master'
pull_request: pull_request:
types: ['labeled'] types: ['labeled', 'labeled', 'opened', 'synchronize', 'reopened']
concurrency: concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }}) group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
@@ -23,7 +23,7 @@ jobs:
name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.modules }}-modules name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.modules }}-modules
env: env:
COMPILER: ${{ matrix.compiler }} COMPILER: ${{ matrix.compiler }}
if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.event.label.name == 'file-cpp' || github.event.label.name == 'run-build' || github.ref == 'refs/heads/master') if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'file-cpp') || github.event.label.name == 'file-cpp' || contains(github.event.pull_request.labels.*.name, 'run-build') || github.event.label.name == 'run-build')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Checkout modules - name: Checkout modules

View File

@@ -17,7 +17,7 @@ jobs:
env: env:
COMPILER: clang COMPILER: clang
ENABLE_CPP_20: 1 ENABLE_CPP_20: 1
if: github.repository == 'azerothcore/azerothcore-wotlk' && (contains(github.event.pull_request.labels.*.name, 'file-cpp') || github.event.label.name == 'file-cpp' || github.event.label.name == 'run-build' || github.ref == 'refs/heads/master') if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'file-cpp') || github.event.label.name == 'file-cpp' || contains(github.event.pull_request.labels.*.name, 'run-build') || github.event.label.name == 'run-build')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Cache - name: Cache

View File

@@ -4,7 +4,7 @@ on:
branches: branches:
- 'master' - 'master'
pull_request: pull_request:
types: ['labeled'] types: ['labeled', 'labeled', 'opened', 'synchronize', 'reopened']
concurrency: concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }}) group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
@@ -17,7 +17,7 @@ jobs:
matrix: matrix:
os: [ubuntu-20.04] os: [ubuntu-20.04]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.event.label.name == 'run-build' || github.ref == 'refs/heads/master') if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'file-cpp') || github.event.label.name == 'file-cpp' || contains(github.event.pull_request.labels.*.name, 'run-build') || github.event.label.name == 'run-build')
env: env:
COMPOSE_DOCKER_CLI_BUILD: 1 COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1

View File

@@ -4,7 +4,7 @@ on:
branches: branches:
- 'master' - 'master'
pull_request: pull_request:
types: ['labeled'] types: ['labeled', 'labeled', 'opened', 'synchronize', 'reopened']
concurrency: concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }}) group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
@@ -20,7 +20,7 @@ jobs:
- macos-11 - macos-11
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} name: ${{ matrix.os }}
if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.event.label.name == 'run-build' || github.ref == 'refs/heads/master') if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'file-cpp') || github.event.label.name == 'file-cpp' || contains(github.event.pull_request.labels.*.name, 'run-build') || github.event.label.name == 'run-build')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Cache - name: Cache

View File

@@ -4,7 +4,7 @@ on:
branches: branches:
- 'master' - 'master'
pull_request: pull_request:
types: ['labeled'] types: ['labeled', 'labeled', 'opened', 'synchronize', 'reopened']
concurrency: concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }}) group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
@@ -20,7 +20,7 @@ jobs:
name: ${{ matrix.os }}-MSVC16 name: ${{ matrix.os }}-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' && (github.event.label.name == 'run-build' || github.ref == 'refs/heads/master') if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'file-cpp') || github.event.label.name == 'file-cpp' || contains(github.event.pull_request.labels.*.name, 'run-build') || github.event.label.name == 'run-build')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Configure OS - name: Configure OS