From 853bd3f6468837ce20fd4da46f0b9cb42ecfe2b8 Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Tue, 29 Jul 2025 12:50:33 +0200 Subject: [PATCH 1/2] chore: allow workflow to trigger on push to main --- .github/workflows/accuracy-tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/accuracy-tests.yml b/.github/workflows/accuracy-tests.yml index e5f08d51..7eb1de11 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' || github.event.label.name == 'accuracy-tests' env: MDB_OPEN_AI_API_KEY: ${{ secrets.ACCURACY_OPEN_AI_API_KEY }} MDB_GEMINI_API_KEY: ${{ secrets.ACCURACY_GEMINI_API_KEY }} From a62e54e65cbe28d9d0f97712e5d66186ebd4ad29 Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Tue, 29 Jul 2025 13:01:07 +0200 Subject: [PATCH 2/2] Update .github/workflows/accuracy-tests.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/accuracy-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/accuracy-tests.yml b/.github/workflows/accuracy-tests.yml index 7eb1de11..c53415f6 100644 --- a/.github/workflows/accuracy-tests.yml +++ b/.github/workflows/accuracy-tests.yml @@ -16,7 +16,7 @@ jobs: permissions: contents: read pull-requests: write - if: 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 }}