Skip to content

Update Dependencies #218

Update Dependencies

Update Dependencies #218

Workflow file for this run

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 <osc.robot@gmail.com>
author: osc-bot <osc.robot@gmail.com>
delete-branch: true
title: 'Update Dependencies'
push-to-fork: osc-bot/ondemand
branch: osc-bot/dep-updates
body: |
Update dependencies generated from `rake update`