Skip to content

Commit

Permalink
cd: fix windows build error due to nightly version format
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed May 4, 2024
1 parent 937a706 commit 7ad67fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/spotube-release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down

0 comments on commit 7ad67fa

Please sign in to comment.