From d6e6f41165385f00808ec7a1f0214c65f88d4f3c Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Thu, 16 Jan 2025 14:54:51 -0700 Subject: [PATCH 1/2] fix: update the prerelease logic --- .github/workflows/release-please.yml | 7 ++++--- version.txt | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 7da0ba582..ed6986c2b 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -43,6 +43,8 @@ jobs: # Debug: Check if version.txt exists if [ -f "version.txt" ]; then echo "version.txt exists" + echo "Current content of version.txt:" + cat version.txt else echo "version.txt does not exist" fi @@ -58,16 +60,15 @@ jobs: # Export both versions for later steps echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV - # Step 5: Update version.txt if version changes - name: Update version.txt - if: env.CURRENT_VERSION != env.NEW_VERSION # Run only if the versions are different + if: env.CURRENT_VERSION && env.CURRENT_VERSION != env.NEW_VERSION # Run only if version exists and versions are different run: | echo "$NEW_VERSION" > version.txt # Step 6: Commit and Push Changes - name: Commit and Push Changes - if: env.CURRENT_VERSION != env.NEW_VERSION # Run only if the versions are different + if: env.CURRENT_VERSION && env.CURRENT_VERSION != env.NEW_VERSION # Run only if version exists and versions are different run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" diff --git a/version.txt b/version.txt index 8b1378917..8acdd82b7 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ - +0.0.1 From 7cf0645ce98e0871a3fbd2fcd86992cc04df57af Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 16 Jan 2025 21:58:51 +0000 Subject: [PATCH 2/2] chore(release): update version to --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index 8acdd82b7..8b1378917 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.0.1 +