Skip to content

Commit ed35688

Browse files
committed
ci: add update-lockfile CI workflow (#44)
Release-As: 0.0.0
1 parent 358bd55 commit ed35688

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Update Lockfile on Release PR
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
update-lock:
9+
if: startsWith(github.head_ref, 'release-please--')
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
token: ${{ secrets.BOT_TOKEN }}
15+
ref: ${{ github.head_ref }}
16+
17+
- uses: prefix-dev/setup-pixi@v0.8.1
18+
with:
19+
pixi-version: latest
20+
21+
- name: Update lockfile
22+
run: |
23+
pixi update --no-install
24+
git config user.name "github-actions[bot]"
25+
git config user.email "github-actions[bot]@users.noreply.github.com"
26+
git add pixi.lock
27+
git commit -m "chore: update pixi.lock for version bump" || echo "No changes"
28+
git push

0 commit comments

Comments
 (0)