Skip to content

Commit

Permalink
ci: run tests on synchronize if ok-to-test is present (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Dec 20, 2024
1 parent 7afcf4b commit e984241
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/run-tests-on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
pull_request:
branches:
- master
types: [ labeled ]
types:
- opened
- reopened
- labeled
- synchronize

env:
KUBERNETES_VERSION: "1.30.0"
Expand All @@ -15,7 +19,7 @@ jobs:
test:
runs-on: ubuntu-latest
name: Test
if: ${{ github.event.label.name == 'ok-to-test' }}
if: ${{ github.event.pull_request.state == 'open' && contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
steps:

- name: Remove the test label
Expand Down

0 comments on commit e984241

Please sign in to comment.