ci: add weekly lockfile update workflow (#1874)
This commit is contained in:
parent
812a46ab97
commit
fc5cb6ab48
1 changed files with 40 additions and 0 deletions
40
.github/workflows/weekly-lockfile-update.yml
vendored
Normal file
40
.github/workflows/weekly-lockfile-update.yml
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
name: Weekly Lockfile Update
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
# Every Thursday at 8:00 UTC
|
||||
- cron: "0 8 * * 4"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
update-lockfile:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- uses: astral-sh/setup-uv@v7
|
||||
with:
|
||||
version: 0.9.5
|
||||
|
||||
- name: Update lockfile
|
||||
run: |
|
||||
echo '## Updated Dependencies' > pr_body.md
|
||||
echo '' >> pr_body.md
|
||||
echo '```' >> pr_body.md
|
||||
uv lock --upgrade 2>&1 | tee -a pr_body.md
|
||||
echo '```' >> pr_body.md
|
||||
|
||||
- name: Create pull request
|
||||
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
|
||||
with:
|
||||
commit-message: "chore: update uv.lock with latest dependencies"
|
||||
title: "chore: weekly dependency update"
|
||||
body-path: pr_body.md
|
||||
branch: weekly-lockfile-update
|
||||
delete-branch: true
|
||||
add-paths: uv.lock
|
||||
labels: dependencies
|
||||
Loading…
Reference in a new issue