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 }}