From b0e4637ccb8d889df61d454be068d0b064d6ef85 Mon Sep 17 00:00:00 2001 From: Ahlul Date: Tue, 1 Oct 2024 11:06:16 +0700 Subject: [PATCH] s --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96966e9..49544e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,8 +17,8 @@ jobs: - name: Generate Changelog run: | - # Ambil tag sebelumnya, jika tidak ada tag sebelumnya gunakan INITIAL_COMMIT - PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "INITIAL_COMMIT") + # Ambil tag sebelumnya, jika tidak ada tag sebelumnya gunakan commit pertama + PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || git rev-list --max-parents=0 HEAD) NEW_TAG=${{ github.ref_name }} echo "Previous tag: $PREVIOUS_TAG"