Skip to content

GitHub Action to update pixi.lock in a sub-directory #2603

Closed Answered by SheldonWBM
SheldonWBM asked this question in Q&A
Discussion options

You must be logged in to vote

Solved issue. While I did this before and merged it into main, it might have used the old action when re-running:

jobs:
  pixi-update:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Set up pixi
        uses: prefix-dev/setup-pixi@v0.8.1
        with:
          run-install: false
      - name: Update lockfiles
        working-directory: my/sub/dir
        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: Update pixi lockfile
     …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@SheldonWBM
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by SheldonWBM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants