diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57de6442..f344a610 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,8 +47,9 @@ jobs: # Update the version in the JSON using jq jq --arg v "$NEW_VERSION" '.version = $v' package-info.json > temp.json && mv temp.json package-info.json - # Display the new version - cat package-info.json + # Extract the updated version + VERSION=$(jq -r '.version' package-info.json) + echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Commit updated package-info.json run: | @@ -80,4 +81,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create auto-${{ steps.get-date.outputs.date }}-release ppooll.zip --title "Release $DATE.$COUNT" --notes "Automated release for ${{ steps.get-date.outputs.date }}" + gh release create $VERSION ppooll.zip --title "Release $VERSION" --notes "Automated release for $VERSION"