From ea07f52080c7b3e3d2a410d1cf93c4ae9e2e71e2 Mon Sep 17 00:00:00 2001 From: Kartik Pradeepan Date: Thu, 31 Oct 2024 17:51:57 -0400 Subject: [PATCH] Update auto merge workflow to require mapping (#1424) --- .github/workflows/automerge_plugin-only_prs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automerge_plugin-only_prs.yml b/.github/workflows/automerge_plugin-only_prs.yml index 73c0d852e..a08527fb1 100644 --- a/.github/workflows/automerge_plugin-only_prs.yml +++ b/.github/workflows/automerge_plugin-only_prs.yml @@ -18,7 +18,7 @@ jobs: check_test_results: name: Check if all tests have passed and PR meets automerge conditions runs-on: ubuntu-latest - if: github.event.label.name == 'automerge-approved' + if: contains(github.event.pull_request.labels.*.name, 'automerge-approved') && contains(github.event.pull_request.labels.*.name, 'mapping-complete') outputs: ALL_TESTS_PASS: ${{ steps.gettestresults.outputs.TEST_RESULTS }} steps: