Patch/metadata 2 #6
Workflow file for this run
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 files | |
| on: | |
| pull_request: | |
| branches: [main, dev] | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-lock: | |
| name: Update lockfile | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| - name: Set up pixi | |
| uses: prefix-dev/setup-pixi@v0.8.1 | |
| with: | |
| pixi-version: v0.40.2 | |
| run-install: false | |
| - name: Pixi update | |
| run: | | |
| set -o pipefail | |
| echo -e "~ Lockfile Updated ~ \nChangelog:\n\n$(pixi update --json | pixi exec pixi-diff-to-markdown)" > diff.md | |
| - name: Commit lockfile | |
| run: | | |
| git config --local user.name ${{ github.actor }} | |
| git config --local user.email ${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com | |
| git commit -aF diff.md | |
| git push |