would this work

This commit is contained in:
Skillz4Killz
2021-05-06 14:11:43 +00:00
committed by GitHub
parent 8e05b61a1a
commit 4498086f16

View File

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