Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/update_dev_deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Update dev lockfile

permissions:
contents: write
pull-requests: write

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

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

steps:
- uses: actions/checkout@v4

- name: Set up pixi
uses: prefix-dev/setup-pixi@v0.8.12
with:
run-install: false

- name: Update lockfile for dev environment
run: |
set -o pipefail
pixi update --environment dev --json | pixi exec pixi-diff-to-markdown > diff.md

- name: Get current date
id: date
run: echo "::set-output name=today::$(date +'%Y-%m-%d')"

- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Update pixi lockfile for dev environment"
title: "Update dev dependencies for pixi"
body-path: diff.md
branch: update-pixi-dev-${{ steps.date.outputs.today }}-${{ github.run_id }}
base: main
labels: pixi, dev
delete-branch: true
add-paths: |
pixi.lock
skip-empty: true
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
## Dev
* Bump version to 0.0.4 in pyproject.toml (@alberthli, #73)
* Cache meshes in CI to prevent CI failures when request limit is hit (@alberthli, #79)
* Added a workflow to automatically update development dependencies in the pixi lock file (@alberthli, #58)

# v0.0.3

Expand Down
Loading
Loading