Skip to content

Commit

Permalink
Add cron job to auto-update pixi lock file (#978)
Browse files Browse the repository at this point in the history
This way there will be a PR that updates the lock file every month
  • Loading branch information
Hofer-Julian authored Jan 23, 2024
1 parent ec7234d commit 8032975
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/core_tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Julia Tests
on:
push:
branches: [main]
branches: [main, update/pixi-lock]
paths-ignore: [".teamcity/**"]
tags: ["*"]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Docs
on:
push:
branches: [main]
branches: [main, update/pixi-lock]
paths-ignore: [".teamcity/**"]
pull_request:
merge_group:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pixi_auto_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Pixi auto update

on:
schedule:
# At 03:00 on day 1 of the month
- cron: "0 3 1 * *"
# on demand
workflow_dispatch:

jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: prefix-dev/[email protected]
with:
pixi-version: "latest"
cache: false
- name: Update pixi lock file
run: |
rm pixi.lock
pixi install
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pixi-lock
title: Update pixi lock file
commit-message: "Update `pixi.lock`"
body: Update pixi dependencies to the latest version.
author: "GitHub <[email protected]>"
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
merge_group:
push:
branches: [main, update/pre-commit-hooks]
branches: [main, update/pre-commit-hooks, update/pixi-lock]

jobs:
check:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Python Lint
on:
push:
branches: [main]
branches: [main, update/pixi-lock]
paths-ignore: [".teamcity/**"]
tags: ["*"]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Ribasim Python Tests
on:
push:
branches: [main]
branches: [main, update/pixi-lock]
paths-ignore: [".teamcity/**"]
tags: ["*"]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qgis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: QGIS Tests

on:
push:
branches: [main]
branches: [main, update/pixi-lock]
paths-ignore: [".teamcity/**"]
tags: ["*"]
pull_request:
Expand Down

0 comments on commit 8032975

Please sign in to comment.