Last active
December 20, 2017 05:09
-
-
Save mactkg/65c88036ded99bbd4c8c140fdec4b126 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
# いつものbuildやtestはこの下に書いておく | |
build_and_test: | |
docker: | |
- image: circleci/ruby:2.4.1-node | |
environment: | |
RAILS_ENV: test | |
steps: | |
- checkout # やテストなど…。 | |
# ここが今回のポイント | |
bundle_update: | |
docker: | |
- image: circleci/ruby:2.4.1-node | |
steps: | |
- checkout | |
- run: | |
name : bundle update | |
command: | | |
gem update bundler -N | |
gem install circleci-bundle-update-pr -N | |
circleci-bundle-update-pr ${BUNDLE_UPDATE_GITHUB_USERNAME} ${BUNDLE_UPDATE_GITHUB_EMAIL} | |
workflows: | |
version: 2 | |
build: | |
jobs: | |
- build_and_test | |
auto_bundle_update: | |
triggers: | |
- schedule: | |
cron: "00 1 * * 1" # 毎週月曜日 | |
filters: | |
branches: | |
only: | |
- master | |
jobs: | |
- bundle_update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment