diff --git a/.github/workflows/accuracy-tests.yml b/.github/workflows/accuracy-tests.yml index e5f08d51..c53415f6 100644 --- a/.github/workflows/accuracy-tests.yml +++ b/.github/workflows/accuracy-tests.yml @@ -16,9 +16,7 @@ jobs: permissions: contents: read pull-requests: write - if: | - github.event_name == 'workflow_dispatch' || - (github.event_name == 'pull_request' && github.event.label.name == 'accuracy-tests') + if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'accuracy-tests') env: MDB_OPEN_AI_API_KEY: ${{ secrets.ACCURACY_OPEN_AI_API_KEY }} MDB_GEMINI_API_KEY: ${{ secrets.ACCURACY_GEMINI_API_KEY }}