From 514f7343df593d8422b894c30bab0e55b11ea263 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Fri, 9 Apr 2021 00:36:00 +0000 Subject: [PATCH] test with label --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08082b312..f64af1cfd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: - name: Cache dependencies run: deno cache --no-check mod.ts - name: Run test script - if: github.ref == 'refs/heads/main' + if: ${{ github.event.label.name == 'run-tests' }} run: deno test -A --no-check env: DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}