fix(ci): split up flake update

This commit is contained in:
arcnmx 2024-07-22 12:11:19 -07:00
parent 4399603d0c
commit 07b775665d
3 changed files with 33 additions and 10 deletions

View file

@ -34,18 +34,28 @@ in {
workflow_dispatch = {};
};
jobs.flake-update = {
# TODO: split this up into two phases, then push at the end so other CI tests can run first
step.flake-update = {
name = "flake update build";
order = 500;
run = "nix run .#nf-update";
env = {
CACHIX_SIGNING_KEY = "\${{ secrets.CACHIX_SIGNING_KEY }}";
NF_UPDATE_GIT_COMMIT = "1";
NF_UPDATE_GIT_COMMIT = "";
NF_UPDATE_CACHIX_PUSH = "1";
NF_CONFIG_ROOT = "\${{ github.workspace }}";
};
};
# we split this up into two phases so other CI tests can run in-between
step.flake-commit = {
name = "git push";
order = 1500;
run = "nix run .#nf-update";
env = {
NF_UPDATE_SKIP = "1";
NF_UPDATE_GIT_COMMIT = "1";
NF_CONFIG_ROOT = "\${{ github.workspace }}";
};
};
};
};