Skip to content

Commit 708986d

Browse files
Don't add ci-pending on external contribution PRs (#444)
Signed-off-by: Miguel Company <[email protected]>
1 parent 8eaca9a commit 708986d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ on:
5454
required: false
5555
type: boolean
5656
default: false
57+
add-label:
58+
description: 'Add the CI-PENDING label to the PR'
59+
required: false
60+
type: boolean
61+
default: false
5762
defaults:
5863
run:
5964
shell: bash
@@ -69,7 +74,7 @@ jobs:
6974
- 'RelWithDebInfo'
7075
steps:
7176
- name: Add ci-pending label if PR
72-
if: ${{ github.event_name == 'pull_request' }}
77+
if: ${{ github.event_name == 'pull_request' && inputs.add-label == true }}
7378
uses: eProsima/eProsima-CI/external/add_labels@v0
7479
with:
7580
labels: ci-pending

.github/workflows/ubuntu-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ jobs:
7575
run-build: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
7676
run-tests: ${{ (inputs.run-tests == true) || ((github.event_name == 'pull_request') && (!contains(github.event.pull_request.labels.*.name, 'no-test'))) }}
7777
use-ccache: ${{ (inputs.use-ccache == true) || false }}
78+
add-label: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.repository) && true || false }}

0 commit comments

Comments
 (0)