Skip to content

Commit

Permalink
ci: Try to trigger pixi lockfiles update
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Oct 15, 2024
1 parent b8bb219 commit ed26396
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/update_pixi_lockfiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Update Pixi lockfiles
permissions:
contents: write
pull-requests: write

on:
workflow_dispatch:
# schedule:
# - cron: 0 5 1 * *

jobs:
pixi-update:
runs-on: ubuntu-latest

steps:
- uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
submodules: recursive
ref: devel

- name: Set up pixi
uses: prefix-dev/[email protected]
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@v7
with:
token: ${{ steps.generate-token.outputs.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

0 comments on commit ed26396

Please sign in to comment.