Skip to content

Instantly share code, notes, and snippets.

@mactkg
Last active December 20, 2017 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mactkg/65c88036ded99bbd4c8c140fdec4b126 to your computer and use it in GitHub Desktop.
Save mactkg/65c88036ded99bbd4c8c140fdec4b126 to your computer and use it in GitHub Desktop.
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