Skip to content

Update Dependencies #28

Update Dependencies

Update Dependencies #28

Workflow file for this run

name: Update Dependencies
on:
schedule:
# Runs at 09:00 UTC every Friday
- cron: '0 9 * * 5'
workflow_dispatch:
jobs:
relock:
env:
NEW_BRANCH_NAME:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Poetry
run: python -m pip install poetry
- name: Update dependencies
run: poetry lock
- name: Generate branch name
run: echo "NEW_BRANCH_NAME=relock-$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.BOT_ACCESS_TOKEN }}
title: Update dependencies
body: |
Automated dependency update
branch: ${{ env.NEW_BRANCH_NAME }}
commit-message: Update dependencies