forked from MODFLOW-USGS/modflow6
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 993 Bytes
/
pixi_auto_update.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
name: Pixi auto update
on:
schedule:
# At 03:00 on day 3 of the month
- cron: "0 3 3 * *"
# on demand
workflow_dispatch:
env:
PIXI_BETA_WARNING_OFF: true
jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: v0.40.1
cache: false
- name: Update pixi lock file
run: |
rm pixi.lock
pixi global install pixi-diff-to-markdown
printf "Update pixi dependencies to the latest version\n\n" >> diff.md
pixi update --json | pixi exec pixi-diff-to-markdown >> diff.md
- uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pixi-lock
title: Update pixi lock file
commit-message: "Update `pixi.lock`"
body-path: diff.md
add-paths: pixi.lock
author: "GitHub <noreply@github.com>"