Skip to content

Update Dependencies

Update Dependencies #6

Workflow file for this run

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."