Skip to content

Commit ed26396

Browse files
committed
ci: Try to trigger pixi lockfiles update
1 parent b8bb219 commit ed26396

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Update Pixi lockfiles
2+
permissions:
3+
contents: write
4+
pull-requests: write
5+
6+
on:
7+
workflow_dispatch:
8+
# schedule:
9+
# - cron: 0 5 1 * *
10+
11+
jobs:
12+
pixi-update:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/create-github-app-token@v1
17+
id: generate-token
18+
with:
19+
app-id: ${{ secrets.APP_ID }}
20+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
21+
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
25+
ref: devel
26+
27+
- name: Set up pixi
28+
uses: prefix-dev/[email protected]
29+
with:
30+
run-install: false
31+
32+
- name: Update lockfiles
33+
run: |
34+
set -o pipefail
35+
pixi update --json | pixi exec pixi-diff-to-markdown >> diff.md
36+
37+
- name: Create pull request
38+
uses: peter-evans/create-pull-request@v7
39+
with:
40+
token: ${{ steps.generate-token.outputs.token }}
41+
commit-message: Update pixi lockfile
42+
title: Update pixi lockfile
43+
body-path: diff.md
44+
branch: update-pixi
45+
base: main
46+
labels: pixi
47+
delete-branch: true
48+
add-paths: pixi.lock

0 commit comments

Comments
 (0)