pact_broker-client 1.27.21 → 1.27.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f80648417ca2ed8f9f78a9db7c859651008edef0c8952273119e1ccc6f9adbeb
4
- data.tar.gz: 3b371ce1412a5f75f98d2c89cbffe674b11ac9dd07a7d99e6bb72dee9e65411f
3
+ metadata.gz: a41cd460c210512fab8b5e95008d69087b0a1f84fe558c8de6c8237234c6ce58
4
+ data.tar.gz: 15edd66ab5759414027e5c69e6897f24a9f0849f2adf4b1da0756a78a0646347
5
5
  SHA512:
6
- metadata.gz: b6f7b55c6dd62cb4c64ad858d1140b04b21b2e4fe2c118cc7e2108a9c66ec443d43fa7aa09b01ab0abe599a663be1e1ea85390493fa730bd03bcc11ff729ef06
7
- data.tar.gz: c35ebf06bf22941a88679afb2d7be59c7f030b81b4e98c14bf0be9e1d11ef7fd876ea73796a05e0e69f75d6b8099559e1567f2f0a27b62ca09ffcf1900eb3585
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: actions/setup-ruby@v1
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: Prepare Github Release
38
- run: script/prepare-github-release.sh
39
- - name: Create Github Release
40
- uses: actions/create-release@v1
41
- env:
42
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
@@ -1,3 +1,12 @@
1
+ <a name="v1.27.22"></a>
2
+ ### v1.27.22 (2020-07-12)
3
+
4
+
5
+ #### Bug Fixes
6
+
7
+ * not really a fix, just testing release notes ([13ddd06](/../../commit/13ddd06))
8
+
9
+
1
10
  <a name="v1.27.20"></a>
2
11
  ### v1.27.20 (2020-07-12)
3
12
 
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.27.21'
3
+ VERSION = '1.27.22'
4
4
  end
5
5
  end
@@ -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.21
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
@@ -1,6 +0,0 @@
1
- # action.yml
2
- name: 'Release gem'
3
- description: 'Release gem to rubygems, generate changelog, create release notes'
4
- runs:
5
- using: 'docker'
6
- image: 'Dockerfile'
@@ -1,3 +0,0 @@
1
- #!/bin/sh
2
-
3
- echo "Hello"
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'bump', git: 'https://github.com/bethesque/bump.git'
4
- gem 'conventional-changelog', '~>1.3'
5
- gem 'rake', '~>13.0'
@@ -1,5 +0,0 @@
1
- require "rake/clean"
2
- CLOBBER.include "pkg"
3
-
4
- require "bundler/gem_helper"
5
- Bundler::GemHelper.install_tasks(dir: File.absolute_path(".."))
@@ -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
@@ -1,5 +0,0 @@
1
- puts "env: #{ENV["GEM_HOST_API_KEY"].chars.first}"
2
-
3
- require 'rubygems/commands/push_command'
4
- include Gem::GemcutterUtilities
5
- puts "gemcutter: #{api_key.chars.first}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- set -e
3
-
4
- tag=$(git describe)
5
- mkdir -p tmp
6
- git diff CHANGELOG.md | grep "^+" | grep -v "b/CHANGELOG.md" | sed 's/^+//g' > tmp/RELEASE_NOTES.md
7
- echo "::set-env name=TAG::${tag}"
@@ -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
-
@@ -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