diff --git a/.github/workflows/rc.yml b/.github/workflows/rc.yml index de0309da..c84128f9 100644 --- a/.github/workflows/rc.yml +++ b/.github/workflows/rc.yml @@ -14,19 +14,16 @@ jobs: steps: - name: Extract branch name run: | - prefix="release-" echo "---" echo $GITHUB_REF echo ${GITHUB_REF##*/} - branch=${GITHUB_REF##*/} - echo ${branch#"release-"} - echo "---" - echo 'RELEASE_BRANCH_NAME=v${GITHUB_REF##*/}#"$prefix"' >> $GITHUB_ENV + echo 'RELEASE_BRANCH_NAME=${GITHUB_REF##*/} >> $GITHUB_ENV echo $RELEASE_BRANCH_NAME - name: Extract version from the branch name run: | - echo "VERSION=v${#release-}" >> $GITHUB_ENV + echo "VERSION=v${RELEASE_BRANCH_NAME#"release-"}" >> $GITHUB_ENV + echo $VERSION # - name: Configure git for private modules # env: