diff --git a/.github/workflows/pr-regression-test-bot.yml b/.github/workflows/pr-regression-test-bot.yml index 4b36c93f2..568ce8555 100644 --- a/.github/workflows/pr-regression-test-bot.yml +++ b/.github/workflows/pr-regression-test-bot.yml @@ -33,6 +33,10 @@ env: jobs: permissions-check: name: Check bot permissions + if: | + github.repository_owner == 'tile-ai' && + github.event.issue.pull_request && + (contains(github.event.comment.body, '@regression-perf')) runs-on: ubuntu-latest steps: - name: Get commenter permission @@ -53,10 +57,6 @@ jobs: pr-regression: name: Performance regression test between PR and main - if: | - github.repository_owner == 'tile-ai' && - github.event.issue.pull_request && - (contains(github.event.comment.body, '@regression-perf')) needs: [permissions-check] runs-on: ${{ matrix.runner.tags }} strategy: