Noor Hashem
10/24/2022, 1:44 PMnpx pact-broker publish ./pacts --branch=$GITHUB_HEAD_REF --broker-base-url=$pact_broker --broker-token=$pact_broker_token --consumer-app-version=${version} --tag testing_tag
. The github workflows always passes on the PR, but for some reason it failed when I tried merging it. I have never see this error before on my PR. The only place I see consumer_version_number
is here, link but i'm working with the webhookless approach. I took a look at the example webhookless consumer on github that you guys have but I also don't see a consumer_version_number in the workflows anywhere.
Please let me know if you'd like me to provide any more information.Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Noor Hashem
10/25/2022, 1:55 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
version: ${{ github.event.pull_request.head.sha }}
line 41 of your consumer action file
run: npx pact-broker publish ./pacts --branch=$GITHUB_HEAD_REF --broker-base-url=$pact_broker --broker-token=$pact_broker_token --consumer-app-version=${version} --tag testing_tag
your version number is only populated on pull requests but your workflow runs on pushes too, where github.event.pull_request.head.sha
won't be populated
on:
push:
branches: [master]
paths:
- 'packages/ab-payments/__tests__/**/*.pact.test.js'
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
paths:
- 'packages/ab-payments/__tests__/**/*.pact.test.js'
Yousaf Nabi (pactflow.io)