Skip to content

Commit 5273ced

Browse files
Trigger e2e in PR if e2e label is added
1 parent fc719b1 commit 5273ced

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
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

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ name: Dependabot Labeler
44

55
on:
66
pull_request:
7+
types: [ labeled ]
78

89
jobs:
910
add-approve-lgtm-label:
10-
if: github.actor == 'dependabot[bot]'
11+
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependabot')
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: Add approve and lgtm labels to Dependabot PR

.github/workflows/e2e_tests.yaml

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

33
on:
44
pull_request:
5+
types: [ labeled, synchronize, opened, reopened ]
56
branches:
67
- main
78
- 'release-*'
@@ -30,7 +31,7 @@ env:
3031

3132
jobs:
3233
kubernetes:
33-
34+
if: contains(github.event.pull_request.labels.*.name, 'e2e') || github.event_name == 'merge_group'
3435
runs-on: ubuntu-20.04-4core-gpu
3536

3637
steps:

0 commit comments

Comments
 (0)