-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1004 Bytes
/
update.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
43
44
45
46
name: Update Dependencies
on:
schedule:
- cron: "0 8 * * 1"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update Dependencies
run: |
make setup
make update
env:
USE_DOCKER: 1
- name: Create PR
run: |
if git diff --exit-code **/Gemfile.lock >/dev/null; then
echo "no changes"
exit 0
fi
git config --global user.email "$(echo -n 'aW5mcmFzdHJ1Y3R1cmUK' | base64 -d)@digineo.de"
git config --global user.name "Digineo Bot"
week=$(date +%GW%V)
branch="chore/update-$week"
git checkout -b $branch
git add **/Gemfile.lock
git commit -m "chore: update dependencies"
git push -u origin --force $branch
gh pr create \
--title "Weekly dependency update" \
--body "These are the updates for $week."