Skip to content

Commit 0aed804

Browse files
Trigger e2e in PR if e2e label is added
1 parent 9faebc2 commit 0aed804

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.github/dependabot.yml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ updates:
1515
update-types: ["version-update:semver-patch"]
1616
open-pull-requests-limit: 4
1717
labels:
18+
- "dependabot"
1819
- "test-guided-notebooks"
1920

2021
# pip means poetry in this case, this keeps poetry.lock up to date with constraints in pyproject.toml.
@@ -27,6 +28,7 @@ updates:
2728
update-types: ["version-update:semver-patch"]
2829
open-pull-requests-limit: 1
2930
labels:
31+
- "dependabot"
3032
- "test-guided-notebooks"
3133

3234
# npm means yarn in this case, this keeps yarn.lock up to date with constraints in package.json.
@@ -39,4 +41,5 @@ updates:
3941
update-types: ["version-update:semver-patch"]
4042
open-pull-requests-limit: 1
4143
labels:
44+
- "dependabot"
4245
- "test-ui-notebooks"

.github/workflows/dependabot-labeler.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
add-approve-lgtm-label:
10-
if: github.actor == 'dependabot[bot]'
10+
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependabot')
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Add approve and lgtm labels to Dependabot PR

.github/workflows/e2e_tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ env:
3030

3131
jobs:
3232
kubernetes:
33-
33+
if: contains(github.event.pull_request.labels.*.name, 'e2e') || github.event_name == 'merge_group'
3434
runs-on: ubuntu-20.04-4core-gpu
3535

3636
steps:

.github/workflows/guided_notebook_tests.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Guided notebooks tests
22

33
on:
44
pull_request:
5-
types: [ labeled ]
65

76
concurrency:
87
group: ${{ github.head_ref }}-${{ github.workflow }}
@@ -13,7 +12,7 @@ env:
1312

1413
jobs:
1514
verify-0_basic_ray:
16-
if: ${{ github.event.label.name == 'test-guided-notebooks' }}
15+
if: contains(github.event.pull_request.labels.*.name, 'test-guided-notebooks')
1716
runs-on: ubuntu-20.04-4core
1817

1918
steps:

.github/workflows/ui_notebooks_test.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: UI notebooks tests
22

33
on:
44
pull_request:
5-
types: [labeled]
65

76
concurrency:
87
group: ${{ github.head_ref }}-${{ github.workflow }}
@@ -13,7 +12,7 @@ env:
1312

1413
jobs:
1514
verify-3_widget_example:
16-
if: ${{ github.event.label.name == 'test-guided-notebooks' || github.event.label.name == 'test-ui-notebooks'}}
15+
if: contains(github.event.pull_request.labels.*.name, 'test-guided-notebooks') || contains(github.event.pull_request.labels.*.name, 'test-ui-notebooks')
1716
runs-on: ubuntu-20.04-4core
1817

1918
steps:

0 commit comments

Comments
 (0)