From bfecfcddccba325792804897aea39f778191871f Mon Sep 17 00:00:00 2001 From: Sankalp Sanand Date: Tue, 12 Dec 2023 14:22:33 -0500 Subject: [PATCH] fixed some stuff --- .github/workflows/release.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1fed77c5e..0c4b1659d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -86,20 +86,21 @@ jobs: - name: Format prerelease ref if: inputs.prerelease run: | - re='^[0-9]+$' - IFS='.' read -ra version <<< "${{ github.event.inputs.prerelease_version }}" - if [[ ${version[0]} =~ $re ]] ; then - echo "PRERELEASE=v$version" >> $GITHUB_ENV - else - echo "PRERELEASE=$version" >> $GITHUB_ENV - fi + # re='^[0-9]+$' + # IFS='.' read -ra version <<< "${{ github.event.inputs.prerelease_version }}" + # if [[ ${version[0]} =~ $re ]] ; then + # echo "PRERELEASE=v$version" >> $GITHUB_ENV + # else + # echo "PRERELEASE=$version" >> $GITHUB_ENV + # fi + echo "PRERELEASE=${{ github.event.inputs.prerelease_version }}" >> $GITHUB_ENV - name: Check out prerelease tag uses: actions/checkout@v4 if: inputs.prerelease with: persist-credentials: false fetch-depth: 0 - ref: "${{ env.PRERELEASE }}" + ref: "updating-nightly-workflow" - name: Generate stable release message if: > github.event.inputs.stable_version