From 8f0deba912254fc257d59ad0a8decce3d73c4020 Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Sat, 6 Jul 2024 12:19:05 +0200 Subject: [PATCH] :bug: now, pulls first in Gieta Action because of how it works now receiving error, see for example: https://gitea.jaandrle.cz/jaandrle/pagenotfound-cli/actions/runs/8#jobstep-4-8 --- cli.mjs | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cli.mjs b/cli.mjs index db2a504..a67907d 100755 --- a/cli.mjs +++ b/cli.mjs @@ -32,6 +32,7 @@ $.api() .command("pull", "Update article list") .option("--git", "Update git repository") .action(async function pull({ git: is_git= false }){ + if(is_git) s.run`git pull --force`; const { changed }= await sitemap().then(toRSS); echo("Changed files:", changed.length ? changed.join(", ") : "—"); if(is_git) gitCommit(changed, "pull"); diff --git a/package.json b/package.json index 1ead57a..4cffb0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pagenotfound-cli", - "version": "1.1.0", + "version": "1.1.1", "description": "Utility primary for generating RSS feed for Pagenotfound", "bin": "cli.js", "scripts": {