From d7b1e913d3dfaf86edfda43930515703e1b59896 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 27 Oct 2025 16:12:27 +1100 Subject: [PATCH] script fix --- .github/scripts/revert_release.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/scripts/revert_release.sh b/.github/scripts/revert_release.sh index 60316e9..0685ed4 100755 --- a/.github/scripts/revert_release.sh +++ b/.github/scripts/revert_release.sh @@ -180,27 +180,27 @@ ACTION_COUNT=0 if [ "$RELEASE_EXISTS" = true ]; then echo " • Delete GitHub release: $TAG_NAME" - ((ACTION_COUNT++)) + ACTION_COUNT=$((ACTION_COUNT + 1)) fi if [ "$TAG_EXISTS_REMOTE" = true ]; then echo " • Delete remote tag: $TAG_NAME" - ((ACTION_COUNT++)) + ACTION_COUNT=$((ACTION_COUNT + 1)) fi if [ "$TAG_EXISTS_LOCAL" = true ]; then echo " • Delete local tag: $TAG_NAME" - ((ACTION_COUNT++)) + ACTION_COUNT=$((ACTION_COUNT + 1)) fi if [ "$BRANCH_EXISTS_REMOTE" = true ]; then echo " • Delete remote branch: $BRANCH_NAME" - ((ACTION_COUNT++)) + ACTION_COUNT=$((ACTION_COUNT + 1)) fi if [ "$BRANCH_EXISTS_LOCAL" = true ]; then echo " • Delete local branch: $BRANCH_NAME" - ((ACTION_COUNT++)) + ACTION_COUNT=$((ACTION_COUNT + 1)) fi echo " • Update src/version.py: $VERSION → $PREVIOUS_VERSION" @@ -208,7 +208,7 @@ echo " • Update pyproject.toml: $VERSION → $PREVIOUS_VERSION" echo " • Commit changes to main branch with message:" echo " 'chore: revert version from $VERSION to $PREVIOUS_VERSION'" echo " • Push changes to origin/main" -((ACTION_COUNT+=3)) +ACTION_COUNT=$((ACTION_COUNT + 3)) echo "" echo -e "${RED}Total actions: $ACTION_COUNT${NC}"