Skip to content

Commit ba8f95b

Browse files
committed
chore(ci): Add workflow to update pixi lock on PRs
1 parent a1c53ad commit ba8f95b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/pixi-lock.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
pull_request_target:
3+
paths:
4+
- pyproject.toml
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
check-lockfile:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
steps:
16+
- name: Checkout pull request
17+
uses: actions/checkout@v5
18+
with:
19+
ref: ${{ github.event.pull_request.head.sha }}
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
- name: Set git identity
22+
run: |
23+
git config --global user.name "nipreps[bot]"
24+
git config --global user.email "[email protected]"
25+
- uses: prefix-dev/[email protected]
26+
with:
27+
pixi-version: v0.58.0
28+
run-install: false
29+
- name: Install the latest version of uv
30+
uses: astral-sh/setup-uv@v7
31+
- name: Update lockfile
32+
run: |
33+
uvx datalad run -i pixi.lock -i pyproject.toml -o pixi.lock -- pixi lock
34+
- name: Push updated lockfile, if needed
35+
run: git push

0 commit comments

Comments
 (0)