wercker-bundle-update-pr 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -10
- data/lib/wercker_bundle_update_pr.rb +1 -0
- data/lib/wercker_bundle_update_pr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b007ec1fb6825564006db7fcaad21368b4ee0318
|
4
|
+
data.tar.gz: 9b13ab15f577b74175ee221fd5e9114dca07eba7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb22956f8e0879897f90e286e2f4e9a456742a5c93285ff08c303345fb1489accee58a04f3e6577f2a5befebfe1931b0c41a338de397e0f9414175656e6177e8
|
7
|
+
data.tar.gz: 9b12f51a85bc11ce8cbd2a210ae235441c8545b361f680d933761fe6f9b5679a5077c41656147f4ce391963a29f7eb187c77abe629847757cc9599160dfee6c0
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
This is an automation script to bundle update and send pull request via Wercker's Trigger Build API. By requesting trigger build to Wercker with an environment variable which instruct wercker.yml to execute this script, bundle update is invoked, then commit changes and send pull request to GitHub repository if there some changes exist.
|
4
4
|
|
5
|
-
(Both concept and implementaion are strongly based on [circleci-bundle-update-pr](https://github.com/masutaka/circleci-bundle-update-pr).
|
5
|
+
(Both concept and implementaion are strongly based on [circleci-bundle-update-pr](https://github.com/masutaka/circleci-bundle-update-pr).
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -29,34 +29,32 @@ A Wercker personal token is required for invoking Trigger Build API. Go to your
|
|
29
29
|
In the application's setting page:
|
30
30
|
|
31
31
|
1. Generate SSH key named "wercker_github_ci_key" in "SSH Keys" for pushing changes to GitHub
|
32
|
-
1. Register the above generated key to GitHub SSH keys in Personal settings
|
32
|
+
1. Register the above generated key to GitHub SSH keys in Personal settings
|
33
33
|
1. In "Environment variables", add `GITHUB_ACCESS_TOKEN` with a GitHub personal access token (**Make sure you mark it "protected" otherwise it will be shown in logs**)
|
34
34
|
1. In "Environment variables", add `WERCKER_GITHUB_CI_KEY` as SSH key pair and select "wercker_github_ci_key"
|
35
35
|
|
36
36
|
### Configure wercker.yml
|
37
37
|
|
38
|
-
Add the following 2 steps under `steps` to access GitHub via SSH:
|
38
|
+
Add the following 2 steps under `steps` to access GitHub via SSH (Set GitHub's SSH key RSA fingerprint to `<fingerprint>`. See [What are GitHub's SSH key fingerprints?](https://help.github.com/articles/what-are-github-s-ssh-key-fingerprints)):
|
39
39
|
|
40
40
|
```yaml
|
41
41
|
- add-ssh-key:
|
42
42
|
keyname: WERCKER_GITHUB_CI_KEY
|
43
|
-
fingerprint: 15:59:4b:7c:59:d6:a1:00:0e:91:5a:0d:71:73:d8:7d
|
44
43
|
|
45
44
|
- add-to-known_hosts:
|
46
45
|
hostname: github.com
|
46
|
+
fingerprint: <fingerprint>
|
47
47
|
```
|
48
48
|
|
49
|
-
then add this step as well.
|
49
|
+
then add this step as well (replace `<username>` and `<email>` with yours).
|
50
50
|
|
51
51
|
``` yaml
|
52
52
|
- script:
|
53
53
|
code: |
|
54
|
-
if [
|
55
|
-
ls >/dev/null 2>&1
|
56
|
-
else
|
54
|
+
if [ "${BUNDLE_UPDATE}" ] ; then
|
57
55
|
gem update bundler --no-document
|
58
56
|
gem install wercker-bundle-update-pr
|
59
|
-
wercker-bundle-update-pr
|
57
|
+
wercker-bundle-update-pr <username> <email>
|
60
58
|
fi
|
61
59
|
```
|
62
60
|
|
@@ -80,7 +78,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
80
78
|
|
81
79
|
## Contributing
|
82
80
|
|
83
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
81
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/5t111111/wercker-bundle-update-pr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
84
82
|
|
85
83
|
|
86
84
|
## License
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wercker-bundle-update-pr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hirofumi Wakasugi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|