From bb0856fccd0ae7ffa2b0b1ce13279263bd751f58 Mon Sep 17 00:00:00 2001 From: Greg Tyler Date: Mon, 29 Jan 2024 09:36:30 +0000 Subject: [PATCH] Use consumer name and branch to specify Pact to test (#95) `--url` unavoidably pulls in extra pacts `--webhook-callback-url` doesn't exist on the published image #patch --- .github/workflows/pact-provider-verification.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pact-provider-verification.yml b/.github/workflows/pact-provider-verification.yml index 4dfae19c..54080c68 100644 --- a/.github/workflows/pact-provider-verification.yml +++ b/.github/workflows/pact-provider-verification.yml @@ -29,7 +29,8 @@ jobs: --publish \ --user=admin \ --password=${{ secrets.PACT_BROKER_PASSWORD }} \ - --url=${{ github.event.client_payload.pact_url }} + --filter-consumer=${{ github.event.client_payload.pact_consumer_name }} \ + --consumer-version-selectors='{\"branch\":\"${{ github.event.client_payload.pact_consumer_branch }}\"}' - name: Verify pacts, including pending if: ${{ github.event_name == 'push' }} run: |