Skip to content

Update Dependencies #15

Update Dependencies

Update Dependencies #15

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
env:
USE_DOCKER: 1
run: |
make setup
make update
- name: Create PR
env:
GH_TOKEN: ${{ github.token }}
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."