File tree 5 files changed +7
-33
lines changed
5 files changed +7
-33
lines changed Original file line number Diff line number Diff line change 48
48
cmake-build-type :
49
49
- ' RelWithDebInfo'
50
50
steps :
51
- - name : Add ci-pending label if PR
52
- if : ${{ github.event_name == 'pull_request' }}
53
- uses : eProsima/eProsima-CI/external/add_labels@v0
54
- with :
55
- labels : ci-pending
56
- number : ${{ github.event.number }}
57
- repo : eProsima/Fast-DDS
58
-
59
51
- name : Sync eProsima/Fast-DDS repository
60
52
uses : eProsima/eProsima-CI/external/checkout@v0
61
53
with :
Original file line number Diff line number Diff line change 55
55
if : ${{ inputs.run_asan_fastdds == true }}
56
56
runs-on : ubuntu-22.04
57
57
steps :
58
- - name : Add ci-pending label if PR
59
- if : ${{ github.event_name == 'pull_request' }}
60
- uses : eProsima/eProsima-CI/external/add_labels@v0
61
- with :
62
- labels : ci-pending
63
- number : ${{ github.event.number }}
64
- repo : eProsima/Fast-DDS
65
-
66
58
- name : Sync eProsima/Fast-DDS repository
67
59
uses : eProsima/eProsima-CI/external/checkout@v0
68
60
with :
@@ -342,14 +334,6 @@ jobs:
342
334
CC : gcc-12
343
335
CXX : g++-12
344
336
steps :
345
- - name : Add ci-pending label if PR
346
- if : ${{ github.event_name == 'pull_request' }}
347
- uses : eProsima/eProsima-CI/external/add_labels@v0
348
- with :
349
- labels : ci-pending
350
- number : ${{ github.event.number }}
351
- repo : eProsima/Fast-DDS
352
-
353
337
- name : Sync eProsima/Fast-DDS repository
354
338
uses : eProsima/eProsima-CI/external/checkout@v0
355
339
with :
Original file line number Diff line number Diff line change 52
52
required : false
53
53
type : boolean
54
54
default : false
55
+ add-label :
56
+ description : ' Add the CI-PENDING label to the PR'
57
+ required : false
58
+ type : boolean
59
+ default : false
55
60
56
61
env :
57
62
security-cmake-flag : ${{ inputs.security == true && '-DSECURITY=ON' || '-DSECURITY=OFF' }}
71
76
- ' RelWithDebInfo'
72
77
steps :
73
78
- 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 }}
75
80
uses : eProsima/eProsima-CI/external/add_labels@v0
76
81
with :
77
82
labels : ci-pending
Original file line number Diff line number Diff line change 39
39
vs-toolset :
40
40
- ' v142'
41
41
steps :
42
- - name : Add ci-pending label if PR
43
- if : ${{ github.event_name == 'pull_request' }}
44
- uses : eProsima/eProsima-CI/external/add_labels@v0
45
- with :
46
- labels : ci-pending
47
- number : ${{ github.event.number }}
48
- repo : eProsima/Fast-DDS
49
-
50
42
- name : Sync eProsima/Fast-DDS repository
51
43
uses : eProsima/eProsima-CI/external/checkout@v0
52
44
with :
Original file line number Diff line number Diff line change 69
69
run-build : ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
70
70
run-tests : ${{ ((inputs.run-tests == true) && true) || (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'no-test')) }}
71
71
use-ccache : ${{ ((inputs.use-ccache == true) && true) || false }}
72
+ add-label : ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.repository) && true || false }}
You can’t perform that action at this time.
0 commit comments