-
Notifications
You must be signed in to change notification settings - Fork 286
41 lines (38 loc) · 1.07 KB
/
update_lockfiles.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Update Lock Files
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
schedule:
- cron: 0 5 * * SAT # Runs at 05:00, on every Staturday
jobs:
pixi-update:
runs-on: ubuntu-latest
strategy:
matrix:
base: [main, release-6.14]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.base }}
- name: Set up pixi
uses: prefix-dev/[email protected]
with:
run-install: false
- name: Update lockfiles
run: |
pixi global install pixi-diff-to-markdown
pixi update --json --no-install | pixi-diff-to-markdown >> diff.md
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update pixi lockfile
title: Update pixi lockfile
body-path: diff.md
branch: update-pixi-${{ matrix.base }}
base: ${{ matrix.base }}
labels: pixi
delete-branch: true
add-paths: pixi.lock