workflows #
This is a collection of reusable workflows I utilise within my repositories.
Overview #
Also refer to https://tangled.org/docs/spindles/workflows/ for more information.
mirror-to-github.yml #
Mirrors the contents of a Tangled repo to Github, excluding issues, prs, etc.
Needs a Github token ($GITHUB_TOKEN) with repo read and write permissions to be added as a secret to the Tangled repo and also needs the correct one to be set in $TARGET_REPO within the workflow.
For example, for https://github.com/itsyunaya/nix-config, $TARGET_REPO would be set to itsyunaya/nix-config.
update-flake-inputs.yml #
Updates Nix flake inputs periodically, once a week on monday by default.
Needs an ed25519 ssh key stored as a repo secret under $CI_SSH_KEY.
Adapted from rysieko.pl/nixossmth.
rust-fmt-check.yml #
Checks Rust project files for correct formatting, both .rs (cargo fmt) and .toml (taplo).
May require a preexisting .taplo config file.
nix-build.yml #
Builds the default package output of a Nix project.
Only works on flake-based projects.
nix-flake-check.yml #
Runs a flake check.
Only works on flake-based projects.
Notes #
Once Tangled introduces something like Github's reusable workflows, this repository will be restructured to accomodate for that. For now, copying the workflow files to the repository in which they should be used is the only way to reuse them.