-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (41 loc) · 1.17 KB
/
update-dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "Update dependencies"
on:
schedule:
- cron: '0 0 1-7 * 4'
- cron: '0 0 14-20 * 4'
jobs:
updates:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: install bundler
run: gem install bundler
- name: config unset deployment
run: bundle config unset deployment
- name: bundle update
run: bin/bundle update
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Upgrade Node modules
run: yarn upgrade
shell: bash
- name: RuboCop Linter
uses: andrewmcodes/rubocop-linter-action@v3.3.0
with:
action_config_path: ".github/config/rubocop_linter_action.yml"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: 'update-dependencies'
commit-message: 'Update depedencies'
title: 'Update depedencies'
base: main