File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Update Pact Ruby Standalone
33on :
44 repository_dispatch :
55 types :
6- - pact-ruby- standalone-released
6+ - pact-standalone-released
77
88jobs :
99 update :
1616 git config --global user.name "${GITHUB_ACTOR}"
1717 git config pull.ff only
1818
19- - run : script/create-pr-to-update-pact-ruby- standalone.sh ${{ github.event.client_payload.version }}
19+ - run : script/create-pr-to-update-pact-standalone.sh ${{ github.event.client_payload.version }}
2020 env :
2121 GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
Original file line number Diff line number Diff line change 22
33set -e
44
5- : " ${1?Please supply the pact-ruby- standalone version to upgrade to} "
5+ : " ${1?Please supply the pact-standalone version to upgrade to} "
66
77STANDALONE_VERSION=$1
88TYPE=${2:- fix}
99DASHERISED_VERSION=$( echo " ${STANDALONE_VERSION} " | sed ' s/\./\-/g' )
10- BRANCH_NAME=" chore/upgrade-to-pact-ruby- standalone-${DASHERISED_VERSION} "
10+ BRANCH_NAME=" chore/upgrade-to-pact-standalone-${DASHERISED_VERSION} "
1111
1212git checkout main
1313git checkout standalone/install.ts
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ require_binary curl
99require_binary unzip
1010require_env_var STANDALONE_VERSION
1111
12- BASEURL=https://github.com/pact-foundation/pact-ruby- standalone/releases/download
12+ BASEURL=https://github.com/pact-foundation/pact-standalone/releases/download
1313STANDALONE_DIR=" ${LIB_DIR} /../../standalone"
1414
1515function download_standalone {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ repository_slug=$(git remote get-url $(git remote show) | cut -d':' -f2 | sed 's
1717output=$( curl -v -X POST https://api.github.com/repos/${repository_slug} /dispatches \
1818 -H ' Accept: application/vnd.github.everest-preview+json' \
1919 -H " Authorization: Bearer $GITHUB_ACCESS_TOKEN_FOR_PF_RELEASES " \
20- -d " {\" event_type\" : \" pact-ruby- standalone-released\" , \" client_payload\" : {\" version\" : ${version} }}" 2>&1 )
20+ -d " {\" event_type\" : \" pact-standalone-released\" , \" client_payload\" : {\" version\" : ${version} }}" 2>&1 )
2121
2222if ! echo " ${output} " | grep " HTTP\/.* 204" > /dev/null; then
2323 echo " $output " | sed " s/${GITHUB_ACCESS_TOKEN_FOR_PF_RELEASES} /********/g"
Original file line number Diff line number Diff line change 11import chalk from 'chalk' ;
22
3- // Get latest version from https://github.com/pact-foundation/pact-ruby- standalone/releases
4- export const PACT_STANDALONE_VERSION = '2.4.26 ' ;
3+ // Get latest version from https://github.com/pact-foundation/pact-standalone/releases
4+ export const PACT_STANDALONE_VERSION = '2.5.0 ' ;
55
66function makeError ( msg : string ) : Error {
77 return new Error ( chalk . red ( `Error while locating pact binary: ${ msg } ` ) ) ;
You can’t perform that action at this time.
0 commit comments