From ce864310a6856f6e159262692ad2f250c84db7e0 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 6 Aug 2025 02:15:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Validando=20comparaci=C3=B3n=20d?= =?UTF-8?q?e=20versiones=20de=20CHANGELOG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 2 +- helpers/pagetop-build/Cargo.toml | 2 +- tools/changelog.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6b894b5..1d32d89 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1600,7 +1600,7 @@ dependencies = [ [[package]] name = "pagetop-build" -version = "0.1.1" +version = "0.1.0" dependencies = [ "grass", "static-files", diff --git a/helpers/pagetop-build/Cargo.toml b/helpers/pagetop-build/Cargo.toml index 4769631..7bf6048 100644 --- a/helpers/pagetop-build/Cargo.toml +++ b/helpers/pagetop-build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pagetop-build" -version = "0.1.1" +version = "0.1.0" edition = "2021" description = """ diff --git a/tools/changelog.sh b/tools/changelog.sh index 5c5ec32..eb4ab7e 100755 --- a/tools/changelog.sh +++ b/tools/changelog.sh @@ -90,7 +90,7 @@ if [[ ! "$REPLY" =~ ^[Yy]$ ]]; then fi # Si hay cambios y procede, añade al stage (cargo-release hará el commit) -if ! git diff --quiet HEAD -- "$CHANGELOG_FILE"; then +if git status --porcelain -- "$CHANGELOG_FILE" | grep -qE '^( M|A |??)'; then if [[ "$STAGE" == "--stage" ]]; then git add "$CHANGELOG_FILE" echo "Staged $CHANGELOG_FILE for commit"