cd: fix github versioning scheme

This commit is contained in:
Kingkor Roy Tirtho 2024-05-04 21:00:06 +06:00
parent 7ad67fa3fa
commit c1a105a1ff

View File

@ -44,7 +44,7 @@ jobs:
choco install sed make yq -y 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 yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml
"BUILD_VERSION=${{ inputs.version }}-${{ inputs.channel }}+${{ github.run_number }}" >> $env:GITHUB_ENV echo "BUILD_VERSION=${{ inputs.version }}+${{ inputs.channel }}.${{ github.run_number }}" >> $GITHUB_ENV
shell: bash shell: bash
- name: BUILD_VERSION Env (stable) - name: BUILD_VERSION Env (stable)