Skip to content

Commit

Permalink
Auto update Julia manifest (#980)
Browse files Browse the repository at this point in the history
As discussed:
#978 (review)
  • Loading branch information
Hofer-Julian authored Jan 23, 2024
1 parent 616e642 commit 8af3073
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 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, update/pixi-lock]
branches: [main, update/pixi-lock, update/julia-manifest]
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, update/pixi-lock]
branches: [main, update/pixi-lock, update/julia-manifest]
paths-ignore: [".teamcity/**"]
pull_request:
merge_group:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/julia_auto_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Julia 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"
- name: Update pixi lock file
run: |
pixi run update-manifest-julia
pixi install
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/julia-manifest
title: Update Julia manifest
commit-message: "Update Julia manifest"
body: Update Julia dependencies to the latest version.
author: "GitHub <[email protected]>"
1 change: 1 addition & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ install-without-pre-commit = { depends_on = [
install = { depends_on = ["install-without-pre-commit", "install-pre-commit"] }
# Instantiate
update-registry-julia = "julia --eval='using Pkg; Registry.update()'"
update-manifest-julia = "julia --eval='using Pkg; Pkg.update()'"
instantiate-julia = "julia --project --eval='using Pkg; Pkg.instantiate()'"
initialize-julia = { depends_on = [
"update-registry-julia",
Expand Down

0 comments on commit 8af3073

Please sign in to comment.