Skip to content

Commit 68b289e

Browse files
committed
Refs #21479: Include labeling check
Signed-off-by: JesusPoderoso <[email protected]>
1 parent 13767c2 commit 68b289e

16 files changed

+66
-5
lines changed

.github/workflows/mac-ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ on:
2828
required: false
2929
type: boolean
3030
default: false
31+
add-label:
32+
description: 'Add a label to the PR'
33+
required: false
34+
type: boolean
35+
default: false
3136

3237
pull_request:
3338
types:
@@ -55,3 +60,4 @@ jobs:
5560
ctest-args: ${{ inputs.ctest-args }}
5661
fastdds-branch: ${{ inputs.fastdds_branch || github.ref || 'master' }}
5762
use-ccache: ${{ ((inputs.use-ccache == true) && true) || false }}
63+
add-label: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.repository) && true || false }}

.github/workflows/nightly-mac-ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
ctest-args: "-LE xfail"
2121
fastdds-branch: 'master'
2222
use-ccache: false
23+
add-label: false
2324

2425
nightly-mac-ci-2_14_x:
2526
strategy:
@@ -35,6 +36,7 @@ jobs:
3536
ctest-args: "-LE xfail"
3637
fastdds-branch: '2.14.x'
3738
use-ccache: false
39+
add-label: false
3840

3941
nightly-mac-ci-2_10_x:
4042
strategy:
@@ -50,4 +52,5 @@ jobs:
5052
ctest-args: "-LE xfail"
5153
fastdds-branch: '2.10.x'
5254
use-ccache: false
55+
add-label: false
5356

.github/workflows/nightly-sanitizers-ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
ctest_args: ''
2020
fastdds_ref: 'master'
2121
discovery_server_ref: 'master'
22+
add-label: false
2223

2324
nightly-sanitizers-ci-2_14_x:
2425
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
@@ -33,6 +34,7 @@ jobs:
3334
ctest_args: ''
3435
fastdds_ref: '2.14.x'
3536
discovery_server_ref: 'v1.2.2'
37+
add-label: false
3638

3739
nightly-sanitizers-ci-2_10_x:
3840
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
@@ -47,3 +49,4 @@ jobs:
4749
ctest_args: ''
4850
fastdds_ref: '2.10.x'
4951
discovery_server_ref: 'v1.2.1'
52+
add-label: false

.github/workflows/nightly-ubuntu-ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
run-build: true
2626
run-tests: true
2727
use-ccache: false
28+
add-label: false
2829

2930
nightly-ubuntu-ci-2_14_x:
3031
strategy:
@@ -45,6 +46,7 @@ jobs:
4546
run-build: true
4647
run-tests: true
4748
use-ccache: false
49+
add-label: false
4850

4951
nightly-ubuntu-ci-2_10_x:
5052
strategy:
@@ -65,4 +67,5 @@ jobs:
6567
run-build: true
6668
run-tests: true
6769
use-ccache: false
70+
add-label: false
6871

.github/workflows/nightly-windows-ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
cmake-args: "-DSECURITY=${{ matrix.security }}"
2020
ctest-args: "-LE xfail"
2121
fastdds_branch: 'master'
22+
add-label: false
2223

2324
nightly-windows-ci-2_14_x:
2425
strategy:
@@ -33,6 +34,7 @@ jobs:
3334
cmake-args: "-DSECURITY=${{ matrix.security }}"
3435
ctest-args: "-LE xfail"
3536
fastdds_branch: '2.14.x'
37+
add-label: false
3638

3739
nightly-windows-ci-2_10_x:
3840
strategy:
@@ -47,4 +49,5 @@ jobs:
4749
cmake-args: "-DSECURITY=${{ matrix.security }}"
4850
ctest-args: "-LE xfail"
4951
fastdds_branch: '2.10.x'
52+
add-label: false
5053

.github/workflows/reusable-mac-ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ on:
2828
required: false
2929
type: boolean
3030
default: false
31+
add-label:
32+
description: 'Add the CI-PENDING label to the PR'
33+
required: false
34+
type: boolean
35+
default: true
3136

3237
defaults:
3338
run:
@@ -49,7 +54,7 @@ jobs:
4954
- 'RelWithDebInfo'
5055
steps:
5156
- name: Add ci-pending label if PR
52-
if: ${{ github.event_name == 'pull_request' }}
57+
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
5358
uses: eProsima/eProsima-CI/external/add_labels@v0
5459
with:
5560
labels: ci-pending

.github/workflows/reusable-sanitizers-ci.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ on:
4545
Required only if the Discovery Server job is requested
4646
required: false
4747
type: string
48+
add-label:
49+
description: 'Add the CI-PENDING label to the PR'
50+
required: false
51+
type: boolean
52+
default: true
4853

4954
defaults:
5055
run:
@@ -56,7 +61,7 @@ jobs:
5661
runs-on: ubuntu-22.04
5762
steps:
5863
- name: Add ci-pending label if PR
59-
if: ${{ github.event_name == 'pull_request' }}
64+
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
6065
uses: eProsima/eProsima-CI/external/add_labels@v0
6166
with:
6267
labels: ci-pending
@@ -343,7 +348,7 @@ jobs:
343348
CXX: g++-12
344349
steps:
345350
- name: Add ci-pending label if PR
346-
if: ${{ github.event_name == 'pull_request' }}
351+
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
347352
uses: eProsima/eProsima-CI/external/add_labels@v0
348353
with:
349354
labels: ci-pending

.github/workflows/reusable-ubuntu-ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ on:
5252
required: false
5353
type: boolean
5454
default: false
55+
add-label:
56+
description: 'Add the CI-PENDING label to the PR'
57+
required: false
58+
type: boolean
59+
default: true
5560

5661
env:
5762
security-cmake-flag: ${{ inputs.security == true && '-DSECURITY=ON' || '-DSECURITY=OFF' }}
@@ -71,7 +76,7 @@ jobs:
7176
- 'RelWithDebInfo'
7277
steps:
7378
- name: Add ci-pending label if PR
74-
if: ${{ github.event_name == 'pull_request' }}
79+
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
7580
uses: eProsima/eProsima-CI/external/add_labels@v0
7681
with:
7782
labels: ci-pending

.github/workflows/reusable-windows-ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
2424
required: true
2525
type: string
26+
add-label:
27+
description: 'Add the CI-PENDING label to the PR'
28+
required: false
29+
type: boolean
30+
default: true
2631

2732
defaults:
2833
run:
@@ -40,7 +45,7 @@ jobs:
4045
- 'v142'
4146
steps:
4247
- name: Add ci-pending label if PR
43-
if: ${{ github.event_name == 'pull_request' }}
48+
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
4449
uses: eProsima/eProsima-CI/external/add_labels@v0
4550
with:
4651
labels: ci-pending

.github/workflows/sanitizers-ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ on:
4343
Branch or tag of Discovery Server repository (https://github.com/eProsima/Discovery-Server)
4444
Required only if the Discovery Server job is requested
4545
required: false
46+
add-label:
47+
description: 'Add a label to the PR'
48+
required: false
49+
type: boolean
50+
default: false
4651

4752
pull_request:
4853
types:
@@ -75,3 +80,4 @@ jobs:
7580
ctest_args: ${{ inputs.ctest_args || '' }}
7681
fastdds_ref: ${{ inputs.fastdds_ref || github.ref || 'master' }}
7782
discovery_server_ref: ${{ inputs.discovery_server_ref || 'master' }}
83+
add-label: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.repository) && true || false }}

.github/workflows/ubuntu-ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ on:
3838
required: false
3939
type: boolean
4040
default: false
41+
add-label:
42+
description: 'Add a label to the PR'
43+
required: false
44+
type: boolean
45+
default: false
4146

4247
pull_request:
4348
types:
@@ -69,3 +74,4 @@ jobs:
6974
run-build: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
7075
run-tests: ${{ ((inputs.run-tests == true) && true) || (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'no-test')) }}
7176
use-ccache: ${{ ((inputs.use-ccache == true) && true) || false }}
77+
add-label: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.repository) && true || false }}

.github/workflows/weekly-mac-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ jobs:
2121
ctest-args: "-LE xfail"
2222
fastdds-branch: '2.6.x'
2323
use-ccache: false
24+
add-label: false

.github/workflows/weekly-sanitizers-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ jobs:
1919
ctest_args: ''
2020
fastdds_ref: '2.6.x'
2121
discovery_server_ref: 'v1.2.1'
22+
add-label: false

.github/workflows/weekly-ubuntu-ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
run-build: true
2929
run-tests: true
3030
use-ccache: false
31+
add-label: false
3132

3233
weekly-ubuntu-ci-2_6_x:
3334
strategy:
@@ -46,3 +47,4 @@ jobs:
4647
run-build: true
4748
run-tests: true
4849
use-ccache: false
50+
add-label: false

.github/workflows/weekly-windows-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
cmake-args: "-DSECURITY=${{ matrix.security }}"
2121
ctest-args: "-LE xfail"
2222
fastdds_branch: '2.6.x'
23+
add-label: false

.github/workflows/windows-ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
2424
type: string
2525
required: true
26+
add-label:
27+
description: 'Add a label to the PR'
28+
required: false
29+
type: boolean
30+
default: false
2631

2732
pull_request:
2833
types:
@@ -49,3 +54,4 @@ jobs:
4954
cmake-args: '-DSECURITY=ON ${{ inputs.cmake-args }}'
5055
ctest-args: ${{ inputs.ctest-args }}
5156
fastdds_branch: ${{ inputs.fastdds_branch || github.ref || 'master' }}
57+
add-label: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.repository) && true || false }}

0 commit comments

Comments
 (0)