Skip to content

Commit 3003b8a

Browse files
committed
feat: introduce uv-lock-bot
1 parent 00df2c2 commit 3003b8a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ jobs:
2121
python: ["3.10", "3.11", "3.12", "3.13"]
2222

2323
steps:
24+
- uses: actions/create-github-app-token@v1
25+
id: app
26+
with:
27+
app-id: ${{ secrets.APP_ID }}
28+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2429
- uses: actions/checkout@v5
30+
with:
31+
ref: ${{ github.event.pull_request.head.ref }}
32+
repository: ${{ github.event.pull_request.head.repo.full_name }}
33+
token: ${{ steps.app.outputs.token }}
2534
- name: Install uv and set the Python version
2635
uses: astral-sh/setup-uv@v6
2736
with:
@@ -34,8 +43,8 @@ jobs:
3443
run: |
3544
uv lock
3645
if ! git diff --quiet -- uv.lock; then
37-
git config user.name "github-actions[bot]"
38-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
46+
git config user.name "uv-lock-bot[bot]"
47+
git config user.email "uv-lock-bot[bot]@users.noreply.github.com"
3948
git add uv.lock
4049
git commit -m "chore: refresh uv.lock"
4150
git push || echo "push skipped (no perms)"

0 commit comments

Comments
 (0)