clan-infra/pkgs/job-flake-updates/default.nix
Jörg Thalheim 1b6e951061
All checks were successful
build / test (push) Successful in 8s
simplify job-flake-updates
2023-08-03 16:45:53 +02:00

17 lines
524 B
Nix

{ action-flake-update-pr-clan
, writePureShellScriptBin
}:
let
job-flake-update = repo: writePureShellScriptBin "job-flake-update-${repo}" [ action-flake-update-pr-clan ] ''
export REPO="gitea@git.clan.lol:clan/${repo}.git"
export KEEP_VARS="REPO''${KEEP_VARS:+ $KEEP_VARS}"
action-flake-update-pr-clan
'';
in
{
job-flake-update-clan-core = job-flake-update "clan-core";
job-flake-update-clan-homepage = job-flake-update "clan-homepage";
job-flake-update-clan-infra = job-flake-update "clan-infra";
}