Skip to content

Commit

Permalink
Add workflow for updating lockfile weekly
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Feb 12, 2025
1 parent fc1f530 commit 947ed41
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/update_lockfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: update-lockfile

on:
workflow_dispatch:
schedule:
- cron: 0 8 * * 1

permissions:
contents: write
pull-requests: write

jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v5

- 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.GITHUB_TOKEN }}
commit-message: Update uv lockfile
title: Update uv lockfile
body-path: uv_output.md
branch: update-uv-lockfile
base: main
labels: release-notes:dependency
delete-branch: true
add-paths: uv.lock

0 comments on commit 947ed41

Please sign in to comment.