diff --git a/.github/workflows/update-lock-files.yml b/.github/workflows/update-lock-files.yml new file mode 100644 index 000000000..588e2676e --- /dev/null +++ b/.github/workflows/update-lock-files.yml @@ -0,0 +1,36 @@ +name: Update lock files + +permissions: + contents: write + pull-requests: write + +on: + workflow_dispatch: + schedule: + - cron: 0 5 * * 1 + +jobs: + pixi-update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up pixi + uses: prefix-dev/setup-pixi@v0.8.3 + with: + run-install: false + - name: Update lock files + 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 }} + commit-message: "BLD: Update pixi lock file" + title: "BLD: Update pixi lock file" + body-path: diff.md + branch: update-pixi + base: main + labels: pixi + delete-branch: true + add-paths: pixi.lock