Skip to content

Commit

Permalink
Refs #20648: Change Github workflows trigger to 'review_requested'
Browse files Browse the repository at this point in the history
Signed-off-by: EduPonz <[email protected]>
  • Loading branch information
EduPonz committed Mar 25, 2024
1 parent 843a675 commit ae1fafd
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 98 deletions.
28 changes: 1 addition & 27 deletions .github/workflows/address-sanitizers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

pull_request:
types:
- labeled
- review_requested
paths-ignore:
- '**.md'
- '**.txt'
Expand All @@ -31,10 +31,6 @@ jobs:
asan-test:

if: ${{ (
(github.event_name == 'workflow_dispatch') ||
contains(github.event.pull_request.labels.*.name, 'run-ci')
) &&
(
!contains(github.event.pull_request.labels.*.name, 'skip-ci') &&
!contains(github.event.pull_request.labels.*.name, 'no-test') &&
!contains(github.event.pull_request.labels.*.name, 'conflicts')
Expand All @@ -46,15 +42,6 @@ jobs:
FASTDDS_BRANCH: ${{ github.head_ref || github.event.inputs.fastdds_branch || 'master' }}

steps:
- name: Remove run-ci label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/remove_labels@v0
with:
labels: run-ci
number: ${{ github.event.number }}
repo: eProsima/Fast-DDS
fail_on_error: 'false'

- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/add_labels@v0
Expand Down Expand Up @@ -150,10 +137,6 @@ jobs:
asan-discovery-server-test:

if: ${{ (
(github.event_name == 'workflow_dispatch') ||
contains(github.event.pull_request.labels.*.name, 'run-ci')
) &&
(
!contains(github.event.pull_request.labels.*.name, 'skip-ci') &&
!contains(github.event.pull_request.labels.*.name, 'no-test') &&
!contains(github.event.pull_request.labels.*.name, 'conflicts')
Expand All @@ -166,15 +149,6 @@ jobs:
DEFAULT_DISCOVERY_SERVER_BRANCH: ${{ github.event.inputs.discovery_server_branch || 'master' }}

steps:
- name: Remove run-ci label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/remove_labels@v0
with:
labels: run-ci
number: ${{ github.event.number }}
repo: eProsima/Fast-DDS
fail_on_error: 'false'

- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/add_labels@v0
Expand Down
15 changes: 1 addition & 14 deletions .github/workflows/documentation-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

pull_request:
types:
- labeled
- review_requested
paths-ignore:
- '**.md'
- '**.txt'
Expand All @@ -27,25 +27,12 @@ jobs:
ubuntu-build-and-test-documentation:
name: Documentation build and test
if: ${{ (
(github.event_name == 'workflow_dispatch') ||
contains(github.event.pull_request.labels.*.name, 'run-ci')
) &&
(
!contains(github.event.pull_request.labels.*.name, 'skip-ci') &&
!contains(github.event.pull_request.labels.*.name, 'conflicts')
) }}

runs-on: ubuntu-22.04
steps:
- name: Remove run-ci label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/remove_labels@v0
with:
labels: run-ci
number: ${{ github.event.number }}
repo: eProsima/Fast-DDS
fail_on_error: 'false'

- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/add_labels@v0
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:

pull_request:
types:
- labeled
- review_requested
paths-ignore:
- '**.md'
- '**.txt'
Expand All @@ -39,10 +39,6 @@ concurrency:
jobs:
mac-ci:
if: ${{ (
(github.event_name == 'workflow_dispatch') ||
contains(github.event.pull_request.labels.*.name, 'run-ci')
) &&
(
!contains(github.event.pull_request.labels.*.name, 'skip-ci') &&
!contains(github.event.pull_request.labels.*.name, 'conflicts')
) }}
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/reusable-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ jobs:
cmake-build-type:
- 'RelWithDebInfo'
steps:
- name: Remove run-ci label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/remove_labels@v0
with:
labels: run-ci
number: ${{ github.event.number }}
repo: eProsima/Fast-DDS
fail_on_error: 'false'

- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/add_labels@v0
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/reusable-ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@ jobs:
cmake-build-type:
- 'RelWithDebInfo'
steps:
- name: Remove run-ci label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/remove_labels@v0
with:
labels: run-ci
number: ${{ github.event.number }}
repo: eProsima/Fast-DDS
fail_on_error: 'false'

- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/add_labels@v0
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/reusable-windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,6 @@ jobs:
- 'v141'
- 'v142'
steps:
- name: Remove run-ci label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/remove_labels@v0
with:
labels: run-ci
number: ${{ github.event.number }}
repo: eProsima/Fast-DDS
fail_on_error: 'false'

- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/add_labels@v0
Expand Down
15 changes: 1 addition & 14 deletions .github/workflows/thread-sanitizer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

pull_request:
types:
- labeled
- review_requested
paths-ignore:
- '**.md'
- '**.txt'
Expand All @@ -36,10 +36,6 @@ jobs:
name: Sanitizer Evaluation

if: ${{ (
(github.event_name == 'workflow_dispatch') ||
contains(github.event.pull_request.labels.*.name, 'run-ci')
) &&
(
!contains(github.event.pull_request.labels.*.name, 'skip-ci') &&
!contains(github.event.pull_request.labels.*.name, 'no-test') &&
!contains(github.event.pull_request.labels.*.name, 'conflicts')
Expand All @@ -56,15 +52,6 @@ jobs:
CXX: g++-12

steps:
- name: Remove run-ci label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/remove_labels@v0
with:
labels: run-ci
number: ${{ github.event.number }}
repo: eProsima/Fast-DDS
fail_on_error: 'false'

- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/add_labels@v0
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ on:

pull_request:
types:
- labeled
- review_requested
paths-ignore:
- '**.md'
- '**.txt'
- '!**/CMakeLists.txt'

concurrency:
group: ${{ github.workflow }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
Expand All @@ -46,10 +46,6 @@ jobs:
- 'ubuntu-22.04'

if: ${{ (
(github.event_name == 'workflow_dispatch') ||
contains(github.event.pull_request.labels.*.name, 'run-ci')
) &&
(
!contains(github.event.pull_request.labels.*.name, 'skip-ci') &&
!contains(github.event.pull_request.labels.*.name, 'conflicts')
) }}
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:

pull_request:
types:
- labeled
- review_requested
paths-ignore:
- '**.md'
- '**.txt'
Expand All @@ -39,10 +39,6 @@ concurrency:
jobs:
windows-ci:
if: ${{ (
(github.event_name == 'workflow_dispatch') ||
contains(github.event.pull_request.labels.*.name, 'run-ci')
) &&
(
!contains(github.event.pull_request.labels.*.name, 'skip-ci') &&
!contains(github.event.pull_request.labels.*.name, 'conflicts')
) }}
Expand Down

0 comments on commit ae1fafd

Please sign in to comment.