From b01ca161fc7c3db70a793a066ac98c177e7efc5c Mon Sep 17 00:00:00 2001 From: Rhys Date: Mon, 8 Jan 2024 12:22:19 -0500 Subject: [PATCH] chore: update release draft variables to set correctly (#647) --- .github/workflows/draft-release.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index 6c9e46c5d..5d0b91491 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -47,7 +47,7 @@ jobs: PREV_VERSION_TAG=$(gh api repos/:owner/:repo/releases --jq '. | map(select(.draft == false)) | .[0] | .tag_name') PREV_VERSION=$(npx semver --coerce ${PREV_VERSION_TAG}) - NEXT_VERSION=$(npx semver -i $VERSION_INPUT $PREV_VERSION) + NEXT_VERSION=$(npx semver -i $VERSION_BUMP $PREV_VERSION) else NEXT_VERSION=${{ github.event.inputs.exactVersion }} fi @@ -59,7 +59,7 @@ jobs: npx semver v"${NEXT_VERSION}" npm version "${NEXT_VERSION}" --no-git-tag-version - echo "RELEASE_TAG=v${NEXT_VERSION}" >> $GITHUB_ENV + echo "RELEASE_TAG=v${NEXT_VERSION}" >> "$GITHUB_ENV" - name: Validate release tag shell: bash @@ -98,7 +98,7 @@ jobs: ls *.vsix.sig gh release create "${RELEASE_TAG}" \ - --title "${RELEASE_VERSION}" \ + --title "${RELEASE_TAG}" \ --notes "Edit the release notes before publishing." \ --target main \ --draft \