Jack Middleton
09/24/2024, 10:16 AMYousaf Nabi (pactflow.io)
Jack Middleton
09/24/2024, 10:23 AMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Jack Middleton
09/24/2024, 10:27 AMJack Middleton
09/24/2024, 11:17 AMbranch
and the tag
- name: Publish OpenAPI spec to PactFlow
uses: pactflow/actions/publish-provider-contract@v2
with:
broker_url: ${{ env.PACT_BROKER_BASE_URL }}
token: ${{ secrets.PACT_BROKER_TOKEN }}
application_name: ${{ env.PACTICIPANT_NAME }}
version: ${{ env.VERSION }}
branch: ${{ env.BRANCH_NAME }}
contract: ./contract.yaml
verification_results: ./contract.yaml
verifier: "Verification not necessary when the OpenAPI spec is generated by the API code"
tag: ${{ env.VERSION }}, ${{ env.BRANCH_NAME }}
The result in PactFlow is in the screenshot. The tag is set, but the branch is not.Yousaf Nabi (pactflow.io)
v2
to fix/provider_contract_branch
https://github.com/pactflow/actions/pull/51/files
looks like I was setting env.branch
but using env.BRANCH
in the commandJack Middleton
09/24/2024, 12:11 PM