pact_broker-client 1.27.21 → 1.27.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/release_gem.yml +8 -37
- data/CHANGELOG.md +9 -0
- data/lib/pact_broker/client/version.rb +1 -1
- data/script/trigger-release.sh +0 -3
- metadata +1 -12
- data/.github/workflows/release_gem_2.yml +0 -17
- data/action.yml +0 -6
- data/release-image/entrypoint.sh +0 -3
- data/release-image/release/Gemfile +0 -5
- data/release-image/release/Rakefile +0 -5
- data/release-image/usr/local/bin/prepare-release +0 -21
- data/release-image/usr/local/bin/release-gem +0 -24
- data/script/api_key_test.rb +0 -5
- data/script/prepare-github-release.sh +0 -7
- data/script/prepare-release.sh +0 -12
- data/script/release-gem.sh +0 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a41cd460c210512fab8b5e95008d69087b0a1f84fe558c8de6c8237234c6ce58
|
|
4
|
+
data.tar.gz: 15edd66ab5759414027e5c69e6897f24a9f0849f2adf4b1da0756a78a0646347
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c10729b4859588c30b75b340c564c9ae6aa6c528c2772473ddb709a8f44c27b7356cdb361f41cbd47e32e8caf4fc126a26f5678a3cca515fadb9d6152268fba
|
|
7
|
+
data.tar.gz: 2a9983b65c75d29d5ad2753741ef0858606f389281b764587346291da62151d01770e50a384c85a54906cd84a99b8fd340de625684eedb3a2b746c733c91d22c
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name: Release gem
|
|
1
|
+
name: Release gem 2
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
repository_dispatch:
|
|
@@ -12,41 +12,12 @@ jobs:
|
|
|
12
12
|
- uses: actions/checkout@v2
|
|
13
13
|
with:
|
|
14
14
|
fetch-depth: 0
|
|
15
|
-
- uses:
|
|
16
|
-
with:
|
|
17
|
-
ruby-version: '2.6'
|
|
18
|
-
- name: Install gems
|
|
19
|
-
run: |
|
|
20
|
-
gem update --system
|
|
21
|
-
gem install bundler -v 2.0.2
|
|
22
|
-
bundle install
|
|
23
|
-
- name: Configure git
|
|
24
|
-
run: |
|
|
25
|
-
git config user.email "beth@bethesque.com"
|
|
26
|
-
git config user.name "Beth Skurrie via Github Actions"
|
|
27
|
-
- name: Prepare release
|
|
28
|
-
run: script/prepare-release.sh
|
|
29
|
-
env:
|
|
30
|
-
INCREMENT: patch
|
|
31
|
-
- name: Release gem
|
|
32
|
-
run: |
|
|
33
|
-
touch ~/.gem/credentials
|
|
34
|
-
script/release-gem.sh
|
|
15
|
+
- uses: pact-foundation/release-gem@master
|
|
35
16
|
env:
|
|
36
17
|
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_API_KEY }}'
|
|
37
|
-
- name:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
with:
|
|
44
|
-
tag_name: ${{ env.TAG }}
|
|
45
|
-
release_name: ${{ env.TAG }}
|
|
46
|
-
body_path: tmp/RELEASE_NOTES.md
|
|
47
|
-
- name: Trigger release of pact-cli Docker image
|
|
48
|
-
uses: peter-evans/repository-dispatch@v1
|
|
49
|
-
with:
|
|
50
|
-
token: ${{ secrets.GHTOKENFORPACTCLIRELEASE }}
|
|
51
|
-
repository: pact-foundation/pact-ruby-cli
|
|
52
|
-
event-type: gem-released
|
|
18
|
+
# - name: Trigger release of pact-cli Docker image
|
|
19
|
+
# uses: peter-evans/repository-dispatch@v1
|
|
20
|
+
# with:
|
|
21
|
+
# token: ${{ secrets.GHTOKENFORPACTCLIRELEASE }}
|
|
22
|
+
# repository: pact-foundation/pact-ruby-cli
|
|
23
|
+
# event-type: gem-released
|
data/CHANGELOG.md
CHANGED
data/script/trigger-release.sh
CHANGED
|
@@ -5,11 +5,8 @@ output=$(curl -v -X POST https://api.github.com/repos/pact-foundation/pact_broke
|
|
|
5
5
|
-H "Authorization: Bearer $GITHUB_ACCESS_TOKEN" \
|
|
6
6
|
-d '{"event_type": "release-patch"}' 2>&1)
|
|
7
7
|
|
|
8
|
-
echo "$output" | sed "s/${GITHUB_ACCESS_TOKEN}/****/g"
|
|
9
|
-
|
|
10
8
|
if ! echo "${output}" | grep "HTTP\/1.1 204" > /dev/null; then
|
|
11
9
|
echo "$output" | sed "s/${GITHUB_ACCESS_TOKEN}/****/g"
|
|
12
10
|
echo "Failed to do the thing"
|
|
13
11
|
exit 1
|
|
14
12
|
fi
|
|
15
|
-
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pact_broker-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.27.
|
|
4
|
+
version: 1.27.22
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Beth Skurrie
|
|
@@ -146,7 +146,6 @@ extensions: []
|
|
|
146
146
|
extra_rdoc_files: []
|
|
147
147
|
files:
|
|
148
148
|
- ".github/workflows/release_gem.yml"
|
|
149
|
-
- ".github/workflows/release_gem_2.yml"
|
|
150
149
|
- ".github/workflows/trigger_pact_docs_update.yml"
|
|
151
150
|
- ".gitignore"
|
|
152
151
|
- ".rspec"
|
|
@@ -157,7 +156,6 @@ files:
|
|
|
157
156
|
- README.md
|
|
158
157
|
- RELEASING.md
|
|
159
158
|
- Rakefile
|
|
160
|
-
- action.yml
|
|
161
159
|
- appveyor.yml
|
|
162
160
|
- bin/pact-broker
|
|
163
161
|
- ci.sh
|
|
@@ -218,17 +216,8 @@ files:
|
|
|
218
216
|
- lib/pact_broker/client/webhooks/test.rb
|
|
219
217
|
- lib/pact_broker_client.rb
|
|
220
218
|
- pact-broker-client.gemspec
|
|
221
|
-
- release-image/entrypoint.sh
|
|
222
|
-
- release-image/release/Gemfile
|
|
223
|
-
- release-image/release/Rakefile
|
|
224
|
-
- release-image/usr/local/bin/prepare-release
|
|
225
|
-
- release-image/usr/local/bin/release-gem
|
|
226
|
-
- script/api_key_test.rb
|
|
227
219
|
- script/generate-cli-usage.sh
|
|
228
|
-
- script/prepare-github-release.sh
|
|
229
|
-
- script/prepare-release.sh
|
|
230
220
|
- script/publish-pact.sh
|
|
231
|
-
- script/release-gem.sh
|
|
232
221
|
- script/release.sh
|
|
233
222
|
- script/trigger-release.sh
|
|
234
223
|
- spec/integration/can_i_deploy_spec.rb
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
name: Release gem 2
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
repository_dispatch:
|
|
5
|
-
types:
|
|
6
|
-
- release-patch-2
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
build:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v2
|
|
13
|
-
with:
|
|
14
|
-
fetch-depth: 0
|
|
15
|
-
- uses: pact-foundation/release-gem@master
|
|
16
|
-
env:
|
|
17
|
-
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_API_KEY }}'
|
data/action.yml
DELETED
data/release-image/entrypoint.sh
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
|
|
3
|
-
echo "::group::Internal logs"
|
|
4
|
-
set -ex
|
|
5
|
-
|
|
6
|
-
# Because the BUNDLE_GEMFILE is set on the docker image, everything
|
|
7
|
-
# runs in the context of the
|
|
8
|
-
|
|
9
|
-
increment=${INCREMENT:-patch}
|
|
10
|
-
bundle exec bump ${increment} --no-commit
|
|
11
|
-
bundle exec ruby -e "
|
|
12
|
-
require 'conventional_changelog'
|
|
13
|
-
require 'bump'
|
|
14
|
-
ConventionalChangelog::Generator.new.generate! version: \"v#{Bump::Bump.current}\"
|
|
15
|
-
"
|
|
16
|
-
version_file=$(bundle exec bump file --value-only)
|
|
17
|
-
version=$(bundle exec bump current --value-only)
|
|
18
|
-
git add CHANGELOG.md "${version_file}"
|
|
19
|
-
git commit -m "chore(release): version ${version}"
|
|
20
|
-
|
|
21
|
-
echo "::endgroup::"
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
set -ex
|
|
3
|
-
|
|
4
|
-
# Set up .netrc file with GitHub credentials
|
|
5
|
-
git_setup() {
|
|
6
|
-
cat <<-EOF >$HOME/.netrc
|
|
7
|
-
machine github.com
|
|
8
|
-
login $GITHUB_ACTOR
|
|
9
|
-
password $GITHUB_TOKEN
|
|
10
|
-
machine api.github.com
|
|
11
|
-
login $GITHUB_ACTOR
|
|
12
|
-
password $GITHUB_TOKEN
|
|
13
|
-
EOF
|
|
14
|
-
chmod 600 $HOME/.netrc
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
git_setup
|
|
18
|
-
|
|
19
|
-
# Overzealous validation stops rake release from running without a credentials file
|
|
20
|
-
touch ~/.gem/credentials
|
|
21
|
-
mkdir -p tmp
|
|
22
|
-
cp /release/Rakefile tmp/Rakefile
|
|
23
|
-
cd tmp
|
|
24
|
-
bundle exec rake release
|
data/script/api_key_test.rb
DELETED
data/script/prepare-release.sh
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
set -e
|
|
3
|
-
|
|
4
|
-
# bundle exec rake
|
|
5
|
-
increment=${INCREMENT:-patch}
|
|
6
|
-
bundle exec bump ${increment} --no-commit
|
|
7
|
-
bundle exec rake generate_changelog
|
|
8
|
-
version_file=$(bundle exec bump file --value-only)
|
|
9
|
-
version=$(bundle exec bump current --value-only)
|
|
10
|
-
git add CHANGELOG.md "${version_file}"
|
|
11
|
-
git commit -m "chore(release): version ${version}"
|
|
12
|
-
|
data/script/release-gem.sh
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# if [ -n "${GITHUB_ACTIONS}" ]; then
|
|
4
|
-
# : "${RUBYGEMS_API_KEY:?RUBYGEMS_API_KEY must be set}"
|
|
5
|
-
# : "${GITHUB_TOKEN:?GITHUB_TOKEN must be set}"
|
|
6
|
-
|
|
7
|
-
# echo "Setting up gem credentials..."
|
|
8
|
-
# set +x
|
|
9
|
-
# mkdir -p ~/.gem
|
|
10
|
-
|
|
11
|
-
# cat << EOF > ~/.gem/credentials
|
|
12
|
-
# ---
|
|
13
|
-
# :github: Bearer ${GITHUB_TOKEN}
|
|
14
|
-
# :rubygems_api_key: ${RUBYGEMS_API_KEY}
|
|
15
|
-
# EOF
|
|
16
|
-
|
|
17
|
-
# chmod 0600 ~/.gem/credentials
|
|
18
|
-
# set -x
|
|
19
|
-
|
|
20
|
-
# fi
|
|
21
|
-
|
|
22
|
-
echo "Running gem release task..."
|
|
23
|
-
bundle exec rake release
|