From 37602eed59556a28b692536097b244bf1c7b181f Mon Sep 17 00:00:00 2001 From: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:28:55 +0100 Subject: [PATCH] Make pixi update PR nicer (#305) * Make pixi update PR nicer See also https://pixi.sh/latest/advanced/updates_github_actions/ * Add ssh key --- .github/workflows/pixi_auto_update.yml | 30 +++++++++++++++----------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pixi_auto_update.yml b/.github/workflows/pixi_auto_update.yml index d5948fabd..4a4e3a4f2 100644 --- a/.github/workflows/pixi_auto_update.yml +++ b/.github/workflows/pixi_auto_update.yml @@ -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 " \ No newline at end of file + 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