Skip to content

Commit

Permalink
Trigger e2e in PR if e2e label is added
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianZaccaria authored and openshift-merge-bot[bot] committed Oct 23, 2024
1 parent 9faebc2 commit 0aed804
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ updates:
update-types: ["version-update:semver-patch"]
open-pull-requests-limit: 4
labels:
- "dependabot"
- "test-guided-notebooks"

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

# npm means yarn in this case, this keeps yarn.lock up to date with constraints in package.json.
Expand All @@ -39,4 +41,5 @@ updates:
update-types: ["version-update:semver-patch"]
open-pull-requests-limit: 1
labels:
- "dependabot"
- "test-ui-notebooks"
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
add-approve-lgtm-label:
if: github.actor == 'dependabot[bot]'
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependabot')
runs-on: ubuntu-latest
steps:
- name: Add approve and lgtm labels to Dependabot PR
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:

jobs:
kubernetes:

if: contains(github.event.pull_request.labels.*.name, 'e2e') || github.event_name == 'merge_group'
runs-on: ubuntu-20.04-4core-gpu

steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/guided_notebook_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Guided notebooks tests

on:
pull_request:
types: [ labeled ]

concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
Expand All @@ -13,7 +12,7 @@ env:

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

steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ui_notebooks_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: UI notebooks tests

on:
pull_request:
types: [labeled]

concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
Expand All @@ -13,7 +12,7 @@ env:

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

steps:
Expand Down

0 comments on commit 0aed804

Please sign in to comment.