diff --git a/.github/workflows/sunnypilot-build-prebuilt.yaml b/.github/workflows/sunnypilot-build-prebuilt.yaml index c11d82bf2b..e1b94dec99 100644 --- a/.github/workflows/sunnypilot-build-prebuilt.yaml +++ b/.github/workflows/sunnypilot-build-prebuilt.yaml @@ -284,7 +284,7 @@ jobs: "${{ needs.build.outputs.new_branch }}" \ "${{ needs.build.outputs.version }}" \ "https://x-access-token:${{github.token}}@github.com/sunnypilot/sunnypilot.git" \ - "-${{ needs.build.outputs.extra_version_identifier }}" + "${{ needs.build.outputs.extra_version_identifier }}" echo "" echo "---- ℹ️ To update the list of branches that auto deploy prebuilts -----" diff --git a/release/ci/publish.sh b/release/ci/publish.sh index d723782934..e06434c4f2 100755 --- a/release/ci/publish.sh +++ b/release/ci/publish.sh @@ -61,8 +61,8 @@ SP_VERSION=$(cat $SOURCE_DIR/common/version.h | awk -F\" '{print $2}') # Add built files to git git add -f . -if [ "$EXTRA_VERSION_IDENTIFIER" = "-release" ] || [ "$EXTRA_VERSION_IDENTIFIER" = "-staging" ]; then - export VERSION=${VERSION%"$EXTRA_VERSION_IDENTIFIER"} +if [ "$EXTRA_VERSION_IDENTIFIER" = "release" ] || [ "$EXTRA_VERSION_IDENTIFIER" = "staging" ]; then + export VERSION=${VERSION%"-$EXTRA_VERSION_IDENTIFIER"} git commit --amend -m "sunnypilot v$VERSION" else git commit --amend -m "sunnypilot v$VERSION