Update Dependencies #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |