This action uses pact-cli docker image to perform an opinionated "create version tag" task:
$ pact broker create-version-tag \
--pacticipant <PACTICIPANT> \
--version <COMMIT_SHA> \
--tag <ENVIRONMENT>
Action inputs are (hopefully) kept in sync with related option of create-version-tag
command by pact-cli
Required The pacticipant name.
Required The pacticipant version.
Required Tag name for pacticipant version. WARNING: only one tag name can specified by now.
Setup environment variables used by pact-cli
.
Required The base URL of the Pact Broker
Required Pact Broker basic auth username
Required Pact Broker basic auth password
steps:
# ...
- uses: casavo/pact-create-version-tag-action@v1
env:
PACT_BROKER_BASE_URL: ${{ secrets.PACT_BROKER_BASE_URL }}
PACT_BROKER_PASSWORD: ${{ secrets.PACT_BROKER_PASSWORD }}
PACT_BROKER_USERNAME: ${{ secrets.PACT_BROKER_USERNAME }}
with:
pacticipant: my-application
version: ${{ github.sha }}
tag: staging
# ...