ci: move CI tasks into Nushell scripts and update dependencies weekly
Replace the shell scripts in flake.nix with Nushell scripts in ci/, exposed as flake apps in nix/ci-tasks.nix, so every workflow command is a plain nix call. Build the workspace dependencies in a step of their own, upload to Cachix only after the builds, and run the formatting check through the pre-commit hooks. Automated pushes, tags and pull requests now use the wvhulle-bot account. A weekly cron updates Cargo.lock and flake.lock and opens or updates one pull request from bot/dependency-updates. Claude-Session: https://claude.ai/code/session_01D8dLLgYd8cfR2aQfA5eZXa
This commit is contained in:
11 files changed
+519
-173
No files matched your search
@@ -0,0 +1,28 @@
|
||||
when:
|
||||
- repo: wvhulle/bootvine
|
||||
event: cron
|
||||
cron: weekly-dependency-update
|
||||
|
||||
clone:
|
||||
- name: clone-with-history
|
||||
image: woodpeckerci/plugin-git
|
||||
settings:
|
||||
depth: 0
|
||||
partial: false
|
||||
|
||||
steps:
|
||||
- name: open-dependency-update-pr
|
||||
image: nixos/nix:latest
|
||||
environment:
|
||||
NIX_CONFIG: |
|
||||
experimental-features = nix-command flakes
|
||||
build-users-group =
|
||||
accept-flake-config = true
|
||||
GIT_AUTHOR_NAME: wvhulle-bot
|
||||
GIT_AUTHOR_EMAIL: willemvanhulle@protonmail.com
|
||||
GIT_COMMITTER_NAME: wvhulle-bot
|
||||
GIT_COMMITTER_EMAIL: willemvanhulle@protonmail.com
|
||||
CODEBERG_TOKEN:
|
||||
from_secret: bot_token
|
||||
commands:
|
||||
- nix run --quiet .#open-dependency-update-pr -- --cargo-lock --flake-lock
|
||||
Reference in new issue
Block a user