Skip to content

Commit e984241

Browse files
authored
ci: run tests on synchronize if ok-to-test is present (#469)
1 parent 7afcf4b commit e984241

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/run-tests-on-pr.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ on:
44
pull_request:
55
branches:
66
- master
7-
types: [ labeled ]
7+
types:
8+
- opened
9+
- reopened
10+
- labeled
11+
- synchronize
812

913
env:
1014
KUBERNETES_VERSION: "1.30.0"
@@ -15,7 +19,7 @@ jobs:
1519
test:
1620
runs-on: ubuntu-latest
1721
name: Test
18-
if: ${{ github.event.label.name == 'ok-to-test' }}
22+
if: ${{ github.event.pull_request.state == 'open' && contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
1923
steps:
2024

2125
- name: Remove the test label

0 commit comments

Comments
 (0)