diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 785a64e..bd6d2da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,7 @@ jobs: run: sudo chown -R $(whoami) /usr/share/nsis/Plugins/ - name: Set version - run: sed -i "s/VERSION_PLACEHOLDER/${${GITHUB_REF%-*}:11}.0/g" "scripts/windows/install.nsi" + run: sed -i "s/VERSION_PLACEHOLDER/$(echo $GITHUB_REF | cut -d'-' -f1 | cut -c12-).0/g" "scripts/windows/install.nsi" - name: Create nsis installer uses: joncloud/makensis-action@v3.3