From b303f110f147a8001dbec42cb341033bf822a15a Mon Sep 17 00:00:00 2001 From: Amine Louveau Date: Tue, 21 Feb 2023 12:59:38 +0000 Subject: [PATCH] fix: still fixing changelog versions. --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d966d77..cb1afab 100644 --- a/.drone.yml +++ b/.drone.yml @@ -48,10 +48,11 @@ steps: commands: - apt-get update && apt-get install -y git - git fetch --tags -p + - PREV=$(git describe --tags --abbrev=0) - ./build.sh --publish --from-ci - git remote add pushing https://$GITEA_USR:$GITEA_PASS@gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform.git - VER=$(git describe --tags --abbrev=0) - - CHANGELOG=$(git log $VER..HEAD --pretty="- %s") + - CHANGELOG=$(git log $PREV..HEAD~ --pretty="- %s") - echo "**$VER**\n\n$CHANGELOG\n\n--------------------------------------------------------------------\n\n$(cat CHANGELOG.md)" > CHANGELOG.md - git add CHANGELOG.md - git commit -m "Changelog for $VER [CI SKIP]"