diff --git a/.github/workflows/pixi_auto_update.yml b/.github/workflows/pixi_auto_update.yml index d5948fab..4a4e3a4f 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