Skip to content

Commit 548af28

Browse files
authored
Run record-release command for pact (#4900)
1 parent ef2dab3 commit 548af28

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ jobs:
298298
PACT_BROKER_BASE_URL: ${{ vars.PACT_BROKER_BASE_URL }}
299299
PACT_BROKER_TOKEN: ${{ secrets.PACT_BROKER_TOKEN }}
300300
PACT_PUBLISH_CONTRACT: true
301+
PACT_VERSION: ${{ github.sha }}
301302
GIT_TAG: ${{ needs.generate-tag.outputs.tag }}
302303
run: |
303304
set -x

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ pact-consumer:
2525
pact-broker publish ./pacts/consumer \
2626
--auto-detect-version-properties \
2727
--consumer-app-version ${GIT_TAG} || true; \
28+
29+
pact-broker record-release \
30+
--pacticipant kots \
31+
--version ${PACT_VERSION} \
32+
--environment production \
33+
--verbose
2834
fi
2935

3036
.PHONY: e2e

0 commit comments

Comments
 (0)