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
|
||||
|
||||
git pull || handle_pull_fail
|
||||
git checkout -b "${ci_branch}" || handle_co_fail
|
||||
nix flake update --commit-lock-file || handle_update_fail
|
||||
nix flake check || handle_check_fail
|
||||
git checkout main || handle_co_fail
|
||||
git merge "${ci_branch}" || handle_merge_fail
|
||||
git push || handle_push_fail
|
||||
|
||||
if [ "${1}" = "update" ]; then
|
||||
git checkout -b "${ci_branch}" || handle_co_fail
|
||||
nix flake update --commit-lock-file || handle_update_fail
|
||||
nix flake check || handle_check_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 = [{
|
||||
name = "xin-ci";
|
||||
script = "cd ~/src/xin && ./ci";
|
||||
script = "cd ~/src/xin && ./ci update";
|
||||
startAt = "daily";
|
||||
path = [ ];
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user