Skip to content

Commit ee91c13

Browse files
committed
ci: Add a workflow to update Pixi lockfile evry month
1 parent f58aa2c commit ee91c13

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI - Update Pixi lockfile
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+
token: ${{ steps.generate-token.outputs.token }}
25+
ref: devel
26+
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
27+
persist-credentials: false
28+
29+
- name: Set up pixi
30+
uses: prefix-dev/[email protected]
31+
with:
32+
run-install: false
33+
34+
- name: Update lockfile
35+
run: |
36+
set -o pipefail
37+
pixi update --json | pixi exec pixi-diff-to-markdown >> diff.md
38+
39+
- name: Create pull request
40+
uses: peter-evans/create-pull-request@v7
41+
with:
42+
token: ${{ steps.generate-token.outputs.token }}
43+
commit-message: 'pixi: Update pixi lockfile'
44+
title: Update pixi lockfile
45+
body-path: diff.md
46+
branch: topic/update-pixi
47+
base: devel
48+
labels: pixi
49+
delete-branch: true
50+
add-paths: pixi.lock

0 commit comments

Comments
 (0)