Skip to content

Commit 4cd44a8

Browse files
github-actions[bot]pact-devYOU54F
authored
fix: update standalone to 2.5.0 (#88)
* fix: update standalone to 2.5.0 * chore: rename repo refs to pact-standalone --------- Co-authored-by: pact-dev <[email protected]> Co-authored-by: Yousaf Nabi <[email protected]>
1 parent a51e09c commit 4cd44a8

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/workflows/update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Update Pact Ruby Standalone
33
on:
44
repository_dispatch:
55
types:
6-
- pact-ruby-standalone-released
6+
- pact-standalone-released
77

88
jobs:
99
update:
@@ -16,6 +16,6 @@ jobs:
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 }}'

script/create-pr-to-update-pact-ruby-standalone.sh renamed to script/create-pr-to-update-pact-standalone.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
set -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

77
STANDALONE_VERSION=$1
88
TYPE=${2:-fix}
99
DASHERISED_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

1212
git checkout main
1313
git checkout standalone/install.ts

script/lib/download-standalone.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require_binary curl
99
require_binary unzip
1010
require_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
1313
STANDALONE_DIR="${LIB_DIR}/../../standalone"
1414

1515
function download_standalone {

script/trigger-update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repository_slug=$(git remote get-url $(git remote show) | cut -d':' -f2 | sed 's
1717
output=$(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

2222
if ! echo "${output}" | grep "HTTP\/.* 204" > /dev/null; then
2323
echo "$output" | sed "s/${GITHUB_ACCESS_TOKEN_FOR_PF_RELEASES}/********/g"

standalone/install.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 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

66
function makeError(msg: string): Error {
77
return new Error(chalk.red(`Error while locating pact binary: ${msg}`));

0 commit comments

Comments
 (0)