-
Notifications
You must be signed in to change notification settings - Fork 3.3k
60 lines (52 loc) · 1.58 KB
/
weekly-lockfile-update.yml
File metadata and controls
60 lines (52 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
outputs:
pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }}
steps:
- uses: actions/checkout@v6.0.1
- uses: astral-sh/setup-uv@v7.2.0
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
id: create-pr
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # 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
checks:
if: needs.update-lockfile.outputs.pull-request-number
needs: [update-lockfile]
uses: ./.github/workflows/shared.yml
with:
ref: weekly-lockfile-update
all-green:
if: always()
needs: [update-lockfile, checks]
runs-on: ubuntu-latest
steps:
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}
allowed-skips: checks