Skip to content

Drop GITHUB_TOKEN secret from update-pixi-lockfile #2

Drop GITHUB_TOKEN secret from update-pixi-lockfile

Drop GITHUB_TOKEN secret from update-pixi-lockfile #2

# Reusable workflow to run pixi-diff-to-markdown and create a PR with the updated lockfile.
name: pixi-lockfile-updater
jobs:
pixi-update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Pixi
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0
with:
run-install: false
- name: Update lockfile
run: |
set -o pipefail
pixi global install pixi-diff-to-markdown
pixi update --json | pixi exec pixi diff-to-markdown >> diff.md
- name: Create pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1
with:
token: ${{ secrets.GITHUB_TOKEN }}
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