File tree Expand file tree Collapse file tree 3 files changed +34
-16
lines changed Expand file tree Collapse file tree 3 files changed +34
-16
lines changed Original file line number Diff line number Diff line change 5454 env :
5555 GITHUB_TOKEN : ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
5656 - run : make record-release
57+ - name : get previous release sha
58+ id : previous-release
59+ uses : actions/github-script@v6
60+ with :
61+ script : |
62+ const {
63+ data: [latest, previous],
64+ } = await github.rest.repos.listReleases({
65+ ...context.repo,
66+ per_page: 2,
67+ page: 1,
68+ });
69+ if (!previous) return;
70+ const {
71+ data: {
72+ object: { sha },
73+ },
74+ } = await github.rest.git.getRef({
75+ ...context.repo,
76+ ref: `tags/${previous.tag_name}`,
77+ });
78+ core.setOutput("sha", sha);
79+ - if : steps.previous-release.outputs.sha
80+ env :
81+ PACT_VERSION : ${{ steps.previous-release.outputs.sha }}
82+ run : make record-support-ended
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ record-release:
8181 --environment production \
8282 --verbose
8383
84+ .PHONY : record-support-ended
85+ record-support-ended :
86+ pact-broker record-support-ended \
87+ --pacticipant replicated-cli \
88+ --version ${PACT_VERSION} \
89+ --environment production \
90+ --verbose
91+
8492# fetch the swagger specs from the production Vendor API
8593.PHONY : get-spec-prod
8694get-spec-prod :
You can’t perform that action at this time.
0 commit comments