diff --git a/.github/workflows/make-test-e2e.yaml b/.github/workflows/make-test-e2e.yaml index c739a150..cc904f42 100644 --- a/.github/workflows/make-test-e2e.yaml +++ b/.github/workflows/make-test-e2e.yaml @@ -1,14 +1,18 @@ name: Make run tests e2e on: - pull_request: - types: [labeled] + issue_comment: + types: + - created jobs: build: - if: ${{ github.event.label.name == 'ok-to-test' }} + if: ${{ github.event.issue.pull_request }} && contains(github.event.comment.body, '/ok-to-test') runs-on: ubuntu-22.04 steps: + - uses: actions-cool/check-user-permission@main + with: + require: 'write' - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: diff --git a/.github/workflows/make-test.yaml b/.github/workflows/make-test.yaml index cd4372f1..47280ef7 100644 --- a/.github/workflows/make-test.yaml +++ b/.github/workflows/make-test.yaml @@ -1,14 +1,18 @@ name: Make run tests on: - pull_request: - types: [labeled] + issue_comment: + types: + - created jobs: build: - if: ${{ github.event.label.name == 'ok-to-test' }} + if: ${{ github.event.issue.pull_request }} && contains(github.event.comment.body, '/ok-to-test') runs-on: ubuntu-22.04 steps: + - uses: actions-cool/check-user-permission@main + with: + require: 'write' - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: