Skip to content

Update pixi lockfile #2

Update pixi lockfile

Update pixi lockfile #2

name: Update pixi lockfile
on:
schedule:
# At 04:00 on Monday
- cron: "0 4 * * 1"
# ...or manually
workflow_dispatch:
jobs:
pixi-update:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
base_branch: ["develop", "stable"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
with:
ref: ${{ matrix.base_branch }}
- name: Generate new lockfile
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
with:
pixi-version: latest
run-install: false
- name: Update pixi lockfile
run: |
set -o pipefail
pixi update --json | pixi exec pixi-diff-to-markdown >> diff.md
- name: Create or update pull request
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v7
with:
token: ${{ secrets.PAT }}
branch: automation/update-pixi-lockfile/${{ matrix.base_branch }}
delete-branch: true
add-paths: pixi.lock
commit-message: Update pixi lockfile
title: Update pixi lockfile
body-path: diff.md