-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 939 Bytes
/
update-deps.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
name: Update Dependencies
on:
schedule:
- cron: "30 6 * * *"
workflow_dispatch:
jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby but not gems
uses: ruby/setup-ruby@v1
- name: Update dependencies
run: |
echo 'BUNDLER_OUTPUT<<UPDATE_EOF' >> $GITHUB_ENV
bundle update | tee -a $GITHUB_ENV
echo >> $GITHUB_ENV
echo 'UPDATE_EOF' >> $GITHUB_ENV
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
add-paths: "Gemfile*"
commit-message: "Update dependencies"
branch: create-pull-request/update-dependencies
title: Update dependencies
body: |
Automated dependency update. Bundler output:
```
${{ env.BUNDLER_OUTPUT }}
```