ci: add the ability to run without updating
This commit is contained in:
parent
cba85185c0
commit
a6e80a224f
18
ci
18
ci
@ -23,9 +23,15 @@ if [ $can_sign != 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
git pull || handle_pull_fail
|
git pull || handle_pull_fail
|
||||||
git checkout -b "${ci_branch}" || handle_co_fail
|
|
||||||
nix flake update --commit-lock-file || handle_update_fail
|
if [ "${1}" = "update" ]; then
|
||||||
nix flake check || handle_check_fail
|
git checkout -b "${ci_branch}" || handle_co_fail
|
||||||
git checkout main || handle_co_fail
|
nix flake update --commit-lock-file || handle_update_fail
|
||||||
git merge "${ci_branch}" || handle_merge_fail
|
nix flake check || handle_check_fail
|
||||||
git push || handle_push_fail
|
git checkout main || handle_co_fail
|
||||||
|
git merge "${ci_branch}" || handle_merge_fail
|
||||||
|
git push || handle_push_fail
|
||||||
|
else
|
||||||
|
nix flake check || handle_check_fail
|
||||||
|
fi
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ let
|
|||||||
];
|
];
|
||||||
jobs = [{
|
jobs = [{
|
||||||
name = "xin-ci";
|
name = "xin-ci";
|
||||||
script = "cd ~/src/xin && ./ci";
|
script = "cd ~/src/xin && ./ci update";
|
||||||
startAt = "daily";
|
startAt = "daily";
|
||||||
path = [ ];
|
path = [ ];
|
||||||
}];
|
}];
|
||||||
|
Loading…
Reference in New Issue
Block a user