Skip to content

Commit

Permalink
Make pixi update PR nicer (#305)
Browse files Browse the repository at this point in the history
* Make pixi update PR nicer

See also https://pixi.sh/latest/advanced/updates_github_actions/

* Add ssh key
  • Loading branch information
Hofer-Julian authored Nov 5, 2024
1 parent 1998afa commit 37602ee
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/pixi_auto_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,29 @@ on:
workflow_dispatch:

jobs:
auto-update:
pixi-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: prefix-dev/setup-pixi@v0.8.1
- name: Set up pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: "latest"
cache: false
- name: Update pixi lock file
run: pixi update
- uses: peter-evans/create-pull-request@v7
run-install: false
- name: Update lockfiles
run: |
set -o pipefail
pixi update --json | pixi exec pixi-diff-to-markdown >> diff.md
- name: Create pull request
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: Update pixi dependencies to the latest version.
author: "GitHub <noreply@github.com>"
commit-message: Update pixi lockfile
title: Update pixi lockfile
body-path: diff.md
branch: update-pixi
base: main
labels: pixi
delete-branch: true
add-paths: pixi.lock

0 comments on commit 37602ee

Please sign in to comment.