From 2fcdfd15734d3bc0befd7bee3e86fa64270190ea Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Thu, 6 May 2021 14:07:37 +0000 Subject: [PATCH] test using a comment --- .github/workflows/pr_tests.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr_tests.yml b/.github/workflows/pr_tests.yml index 88cd10be6..620d1546d 100644 --- a/.github/workflows/pr_tests.yml +++ b/.github/workflows/pr_tests.yml @@ -1,7 +1,5 @@ name: Test Contributor Pull Requests -on: - pull_request: - types: [labeled, opened] +on: issue_comment jobs: test: runs-on: ubuntu-latest @@ -16,8 +14,9 @@ jobs: - name: Cache dependencies run: deno cache mod.ts - name: Run test script if label added - if: ${{ github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'run-tests' }} - run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} deno test --unstable --coverage=coverage -A tests/mod.ts + if: ${{ github.event.issue.pull_request }} + if: github.actor == 'Skillz4Killz' || github.actor == 'itohatweb' + run: DISCORD_TOKEN=${{ env.DISCORD_TOKEN }} deno test --unstable --coverage=coverage -A tests/mod.ts env: DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} - name: Create coverage report