Skip to content

Commit 56a02ec

Browse files
Skip runs if PR has `conflicts labels (#491)
1 parent 848ea3a commit 56a02ec

8 files changed

+10
-1
lines changed

.github/workflows/reusable-abi-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212

1313
jobs:
1414
reusable_abi-compatibility-ici:
15+
if: ${{ !(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'conflicts')) }}
1516
runs-on: ubuntu-latest
1617
steps:
1718
- uses: actions/checkout@v5

.github/workflows/reusable-build-coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
coverage:
1616
name: coverage build ${{ inputs.ros_distro }}
17+
if: ${{ !(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'conflicts')) }}
1718
runs-on: ubuntu-latest
1819
container: ghcr.io/ros-controls/ros:${{ inputs.ros_distro }}-ubuntu-testing
1920
defaults:

.github/workflows/reusable-debian-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ on:
3434
jobs:
3535
debian_source:
3636
name: ${{ inputs.ros_distro }} debian build
37+
if: ${{ !(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'conflicts')) }}
3738
runs-on: ubuntu-latest
3839
env:
3940
# this will be src/{repo-owner}/{repo-name}

.github/workflows/reusable-industrial-ci-with-cache.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ on:
8282
jobs:
8383
reusable_industrial_ci_with_cache:
8484
name: ${{ inputs.ros_distro }} ${{ inputs.ros_repo }} ${{ inputs.os_code_name }}
85+
if: ${{ !(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'conflicts')) }}
8586
runs-on: ubuntu-latest
8687
env:
8788
CCACHE_DIR: ${{ github.workspace }}/${{ inputs.ccache_dir }}

.github/workflows/reusable-prerelease.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
default:
3232
if: |
3333
(github.event_name == 'workflow_dispatch') ||
34-
(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'check-prerelease'))
34+
(github.event_name == 'pull_request'
35+
&& contains(join(github.event.pull_request.labels.*.name, ','), 'check-prerelease')
36+
&& !contains(join(github.event.pull_request.labels.*.name, ','), 'conflicts'))
3537
runs-on: ubuntu-latest
3638
steps:
3739
- uses: actions/checkout@v5

.github/workflows/reusable-rhel-binary-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ on:
3636
jobs:
3737
rhel_binary:
3838
name: ${{ inputs.ros_distro }} RHEL binary build
39+
if: ${{ !(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'conflicts')) }}
3940
runs-on: ubuntu-latest
4041
container: ghcr.io/ros-controls/ros:${{ inputs.ros_distro }}-rhel
4142
env:

.github/workflows/reusable-ros-tooling-source-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ on:
2828
jobs:
2929
reusable_ros_tooling_source_build:
3030
name: ${{ inputs.ros_distro }} ${{ inputs.os_name }}
31+
if: ${{ !(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'conflicts')) }}
3132
runs-on: ${{ inputs.os_name }}
3233
container: ${{ inputs.container }}
3334
env:

.github/workflows/reusable-ros-tooling-win-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ on:
6262
jobs:
6363
reusable_ros_tooling_source_build:
6464
name: ${{ inputs.ros_distro }} ${{ inputs.os_name }}
65+
if: ${{ !(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'conflicts')) }}
6566
runs-on: ${{ inputs.os_name }}
6667
container: ${{ inputs.container }}
6768
env:

0 commit comments

Comments
 (0)