From 7ad67fa3fa6cb44b926bedf2f682f589a9b1b206 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sat, 4 May 2024 20:39:36 +0600 Subject: [PATCH] cd: fix windows build error due to nightly version format --- .github/workflows/spotube-release-binary.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spotube-release-binary.yml b/.github/workflows/spotube-release-binary.yml index c7fcbf44..6139bacb 100644 --- a/.github/workflows/spotube-release-binary.yml +++ b/.github/workflows/spotube-release-binary.yml @@ -42,9 +42,10 @@ jobs: if: ${{ inputs.channel == 'nightly' }} run: | choco install sed make yq -y - yq -i '.version |= sub("\+\d+", "+${{ inputs.channel }}.")' pubspec.yaml + yq -i '.version |= sub("\+\d+", "-${{ inputs.channel }}+")' pubspec.yaml yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml - "BUILD_VERSION=${{ inputs.version }}+${{ inputs.channel }}.${{ github.run_number }}" >> $env:GITHUB_ENV + "BUILD_VERSION=${{ inputs.version }}-${{ inputs.channel }}+${{ github.run_number }}" >> $env:GITHUB_ENV + shell: bash - name: BUILD_VERSION Env (stable) if: ${{ inputs.channel == 'stable' }}