From 4498086f163bc43dae427fede6f2ef832fdb6cb5 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Thu, 6 May 2021 14:11:43 +0000 Subject: [PATCH] would this work --- .github/workflows/pr_tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pr_tests.yml b/.github/workflows/pr_tests.yml index e81e38c42..4750a39b2 100644 --- a/.github/workflows/pr_tests.yml +++ b/.github/workflows/pr_tests.yml @@ -14,9 +14,7 @@ jobs: - name: Cache dependencies run: deno cache mod.ts - name: Run test script if label added - if: ${{ github.event.issue.pull_request }} - if: github.actor == 'Skillz4Killz' || github.actor == 'itohatweb' - if: github.event.issue.comment.body == 'run-tests' + if: ${{ github.event.issue.pull_request && github.event.issue.comment.body == 'run-tests' && (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 }}