Skip to content

update-lockfile

update-lockfile #57

name: update-lockfile
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * 1"
jobs:
lock:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
python-version: ['3.13']
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- run: |
echo "\`\`\`" > uv_output.md
uv lock --upgrade 2>&1 | tee -a uv_output.md
echo "\`\`\`" >> uv_output.md
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.LOCKFILE_UPDATE_TOKEN }}
commit-message: Update uv lockfile
title: Update uv lockfile
body-path: uv_output.md
branch: update-uv-lockfile
base: main
labels: dependency_workflow
delete-branch: true
add-paths: uv.lock
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>