From 48feedf85ace182e37f4e3a8548b4ca399203787 Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Wed, 10 Jun 2026 11:07:21 -0700 Subject: [PATCH] chore: add spin version to release notes Signed-off-by: Kate Goldenring --- .github/workflows/release-trigger.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-trigger.yml b/.github/workflows/release-trigger.yml index 397c756..2c2f249 100644 --- a/.github/workflows/release-trigger.yml +++ b/.github/workflows/release-trigger.yml @@ -161,12 +161,29 @@ jobs: echo "PRERELEASE=--prerelease" >> "$GITHUB_ENV" fi + - name: Extract Spin dependency version + shell: bash + run: | + # Extract either 'tag = "vX.Y.Z"' or 'rev = "..."' from the first spin-app dependency + SPIN_TAG=$(grep -m1 'spin-app.*tag' Cargo.toml | sed -n 's/.*tag = "\([^"]*\)".*/\1/p') + SPIN_REV=$(grep -m1 'spin-app.*rev' Cargo.toml | sed -n 's/.*rev = "\([^"]*\)".*/\1/p') + + if [ -n "$SPIN_TAG" ]; then + echo "SPIN_VERSION=$SPIN_TAG" >> "$GITHUB_ENV" + elif [ -n "$SPIN_REV" ]; then + echo "SPIN_VERSION=$SPIN_REV" >> "$GITHUB_ENV" + else + echo "SPIN_VERSION=unknown" >> "$GITHUB_ENV" + fi + - name: create GitHub release env: GH_TOKEN: ${{ github.token }} run: | gh release create ${{ env.RELEASE_TAG }} crates/${{ inputs.crate }}/artifacts/*/*.tar.gz \ - --title ${{ env.RELEASE_TAG }} ${{ env.PRERELEASE }} + --title ${{ env.RELEASE_TAG }} \ + --notes "Based off Spin ${{ env.SPIN_VERSION }} dependencies" \ + ${{ env.PRERELEASE }} # Canary builds: upload the un-shaed merged manifest produced above. # For tag releases, the spin-plugin-releaser step below uploads a