Skip to content

Commit

Permalink
ci: Test ok-to-test only on comment actions (#45)
Browse files Browse the repository at this point in the history
Fixes #42
  • Loading branch information
sergeyshevch committed Mar 20, 2024
1 parent a6eb964 commit 878826c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/make-test-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ name: Make run tests e2e

on:
pull_request:
types: [labeled]
types:
- opened
- labeled
- synchronize

jobs:
build:
if: ${{ github.event.label.name == 'ok-to-test' }}
# Pull request has label 'ok-to-test' or the author is a member of the organization
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(fromJSON('["COLLABORATOR", "MEMBER", "OWNER"]'), github.event.pull_request.author_association)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/make-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ name: Make run tests

on:
pull_request:
types: [labeled]
types:
- opened
- labeled
- synchronize

jobs:
build:
if: ${{ github.event.label.name == 'ok-to-test' }}
# Pull request has label 'ok-to-test' or the author is a member of the organization
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(fromJSON('["COLLABORATOR", "MEMBER", "OWNER"]'), github.event.pull_request.author_association)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 878826c

Please sign in to comment.