Update lockfiles #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update lockfiles | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: 0 5 1 * * | |
| jobs: | |
| pixi-update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| # checks out refspec that triggered or the default branch | |
| - name: Setup pixi | |
| uses: prefix-dev/setup-pixi@v0.9.5 | |
| with: | |
| 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@v8 | |
| # PR will target the branch checked out in the workflow | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: Update pixi lockfile | |
| title: Update pixi lockfile | |
| body-path: diff.md | |
| branch: update-pixi | |
| labels: pixi | |
| delete-branch: true | |
| add-paths: pixi.lock |