WIP: feat(ci): Add a workflow to update flake hashes #947

Draft
Shuroii wants to merge 2 commits from Shuroii/continuwuity:flake-updater into main
Contributor

This workflow is intended to be ran as dispatch whenever the rocksdb fork changes!
Other than that, it'll run on any toolchain changes (rust-toolchain.toml, Cargo.lock, Cargo.toml) and update the relevant hash accordingly.

This workflow is intended to be ran as dispatch whenever the rocksdb fork changes! Other than that, it'll run on any toolchain changes (rust-toolchain.toml, Cargo.lock, Cargo.toml) and update the relevant hash accordingly.
feat(ci): Add a workflow to update flake hashes
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 16s
fd01c49099
This workflow is intended to be ran as dispatch whenever the rocksdb fork changes!
Other than that, it'll run on any toolchain changes (rust-toolchain.toml, Cargol.lock, Cargo.toml) and update the relevant hash accordingly.
Author
Contributor

This is built to work on #945 so maybe wait on that to get merged before merging this. It won't actually break without that getting merged, but it will run a nix build without first ensuring it won't actually build continuwuity, which might not be desirable.

This is built to work on https://forgejo.ellis.link/continuwuation/continuwuity/pulls/945 so maybe wait on that to get merged before merging this. It won't actually *break* without that getting merged, but it will run a `nix build` without first ensuring it won't actually build continuwuity, which might not be desirable.
Author
Contributor

Oh, one more thing; if this is ran as a dispatch on main, it'll fail to commit. Only run this on branches that have an open pull request! I can make it make a PR like renovate, where it'll edit an existing one if it finds one, but that means making this workflow at least twice the size, as well as giving it an auth token.

Oh, one more thing; if this is ran as a dispatch on main, it'll fail to commit. Only run this on branches that have an open pull request! I can make it make a PR like renovate, where it'll edit an existing one if it finds one, but that means making this workflow at least twice the size, as well as giving it an auth token.
requested review from Jade 2025-08-28 17:29:57 +00:00
Jade force-pushed flake-updater from fd01c49099 to 6c69c3e51b 2025-08-31 11:34:04 +00:00 Compare
Shuroii force-pushed flake-updater from 6c69c3e51b to 3216817273 2025-09-02 13:21:22 +00:00 Compare
fix: Fully qualify action
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Update flake hashes / update-flake-hashes (pull_request) Failing after 0s
a743c4fd3c
This fixes an issue where Forgejo tries to look for code.forgejo.org for the action despite it not being available.
Shuroii force-pushed flake-updater from a743c4fd3c to 10630214d8 2025-09-02 13:30:26 +00:00 Compare
Author
Contributor

@tcpipuk do you happen to know the version of the runner? For some reason it's not recognizing the forgejo environment namespace and I got some weird errors regarding it not recognizing something as simple as

- name: Show diff
  run: git diff flake.nix

where it errors at run:.
My workflow doesn't appear to pass schema validation here despite it doing so on my runner (v9.1.1).

@tcpipuk do you happen to know the version of the runner? For some reason it's not recognizing the `forgejo` environment namespace and I got some weird errors regarding it not recognizing something as simple as ```YAML - name: Show diff run: git diff flake.nix ``` where it errors at `run:`. My workflow doesn't appear to pass schema validation here despite it doing so on my runner (v9.1.1).
Some checks are pending
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / *
Required
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u flake-updater:Shuroii-flake-updater
git switch Shuroii-flake-updater
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: continuwuation/continuwuity#947
No description provided.