🐛 now, pulls first in Gieta Action
All checks were successful
Update RSS / update-rss (push) Successful in 5m18s

because of how it works now receiving
error, see for example:
https://gitea.jaandrle.cz/jaandrle/pagenotfound-cli/actions/runs/8#jobstep-4-8
This commit is contained in:
Jan Andrle 2024-07-06 12:19:05 +02:00
parent 1b2f55079c
commit 8f0deba912
Signed by: jaandrle
GPG Key ID: B3A25AED155AFFAB
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +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`;
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");

View File

@ -1,6 +1,6 @@
{ {
"name": "pagenotfound-cli", "name": "pagenotfound-cli",
"version": "1.1.0", "version": "1.1.1",
"description": "Utility primary for generating RSS feed for Pagenotfound", "description": "Utility primary for generating RSS feed for Pagenotfound",
"bin": "cli.js", "bin": "cli.js",
"scripts": { "scripts": {