davT
01/20/2023, 3:07 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
davT
01/20/2023, 4:04 PMYousaf Nabi (pactflow.io)
davT
01/20/2023, 4:09 PMYousaf Nabi (pactflow.io)
davT
01/20/2023, 4:15 PMYousaf Nabi (pactflow.io)
davT
01/20/2023, 4:18 PMYousaf Nabi (pactflow.io)
davT
01/20/2023, 4:21 PMdavT
01/20/2023, 4:29 PMYousaf Nabi (pactflow.io)
--branch
property in the CLI call.
This action does it
https://github.com/pactflow/actions/tree/main/publish-pact-files
https://github.com/pactflow/actions/blob/ffdabd8bf795ec7c769a977d82002e3e9add759f/publish-pact-files/publishPactfiles.sh#L15-L34
it gets the branch via the command git rev-parse --abbrev-ref HEAD
and passes it into the CLI in the --branch
call.
The Pact CI/CD workshop introduces the concepts of branches and environments if it may be helpful
https://docs.pactflow.io/docs/workshops/ci-cd/
Good luck chap and thanks for trying out the feature