🐛 📺 pull --rebase before commit
All checks were successful
Update RSS / update-rss (push) Successful in 5m18s
All checks were successful
Update RSS / update-rss (push) Successful in 5m18s
This commit is contained in:
parent
8f0deba912
commit
7ebcf6e2d2
2
cli.mjs
2
cli.mjs
@ -32,7 +32,7 @@ $.api()
|
|||||||
.command("pull", "Update article list")
|
.command("pull", "Update article list")
|
||||||
.option("--git", "Update git repository")
|
.option("--git", "Update git repository")
|
||||||
.action(async function pull({ git: is_git= false }){
|
.action(async function pull({ git: is_git= false }){
|
||||||
if(is_git) s.run`git pull --force`;
|
if(is_git) s.run`git pull --rebase`;
|
||||||
const { changed }= await sitemap().then(toRSS);
|
const { changed }= await sitemap().then(toRSS);
|
||||||
echo("Changed files:", changed.length ? changed.join(", ") : "—");
|
echo("Changed files:", changed.length ? changed.join(", ") : "—");
|
||||||
if(is_git) gitCommit(changed, "pull");
|
if(is_git) gitCommit(changed, "pull");
|
||||||
|
Loading…
Reference in New Issue
Block a user