Dependency update #39
This file contains hidden or 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
# Make use of dependabot once it supports uv: | |
# https://github.com/dependabot/dependabot-core/issues/10478#issuecomment-2434963744 | |
name: Dependency update | |
on: | |
workflow_dispatch: | |
# Set the schedule, for example every week at 8:00am on Monday | |
schedule: | |
- cron: 0 8 * * 1 | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
lock: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "pyproject.toml" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
echo "\`\`\`" > uv_output.md | |
uv lock --upgrade 2>&1 | tee uv_output.md | |
echo "\`\`\`" >> uv_output.md | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Update uv lockfile | |
title: Update uv lockfile | |
body-path: uv_output.md | |
branch: update-uv | |
base: main | |
labels: install | |
delete-branch: true | |
add-paths: uv.lock |