Skip to content

Commit 5e81252

Browse files
Add workflow types to trigger on label or push events
1 parent 831584a commit 5e81252

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.github/workflows/dependabot-labeler.yaml

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

55
on:
66
pull_request:
7+
types: [ labeled, synchronize, opened, reopened ]
78

89
jobs:
910
add-approve-lgtm-label:
10-
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependabot')
11+
if: ${{ github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependabot') }}
1112
runs-on: ubuntu-latest
13+
14+
# Permission required to edit a PR
15+
permissions:
16+
pull-requests: write
17+
issues: write
18+
1219
steps:
1320
- name: Add approve and lgtm labels to Dependabot PR
1421
run: |

.github/workflows/e2e_tests.yaml

+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-*'

.github/workflows/guided_notebook_tests.yaml

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

33
on:
44
pull_request:
5+
types: [ labeled, synchronize, opened, reopened ]
56

67
concurrency:
78
group: ${{ github.head_ref }}-${{ github.workflow }}

.github/workflows/ui_notebooks_test.yaml

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

33
on:
44
pull_request:
5+
types: [ labeled, synchronize, opened, reopened ]
56

67
concurrency:
78
group: ${{ github.head_ref }}-${{ github.workflow }}

0 commit comments

Comments
 (0)