Update Dependencies #206
This file contains 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
name: Update Dependencies | |
on: | |
workflow_dispatch: | |
schedule: | |
# every Monday morning | |
- cron: '0 3 * * 1' | |
jobs: | |
update-dependencies: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest"] | |
ruby: ["2.7.1"] | |
bundler: ["2.1.4"] | |
runs-on: ${{ matrix.os }} | |
name: Update Dependencies | |
steps: | |
- name: Checkout ${{ github.sha }} | |
uses: actions/checkout@v3 | |
- name: Setup Ruby ${{ matrix.ruby }} using Bundler ${{ matrix.bundler }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler: ${{ matrix.bundler }} | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/vendor/bundle | |
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('apps/*/Gemfile.lock') }} | |
- name: Setup Bundler | |
run: | | |
bundle config path ~/vendor/bundle | |
bundle install | |
- name: Run Rake Update | |
run: bundle exec rake update | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.OSC_ROBOT_GH_PUB_REPO_TOKEN }} | |
commit-message: update dependencies | |
committer: OSC ROBOT <[email protected]> | |
author: osc-bot <[email protected]> | |
delete-branch: true | |
title: 'Update Dependencies' | |
push-to-fork: osc-bot/ondemand | |
branch: osc-bot/dep-updates | |
body: | | |
Update dependencies generated from `rake update` |