diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be14af27878..60863f3b5a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,7 @@ jobs: run: | RC_NAME=$(echo ${{ github.ref_name }} | sed 's/release\///') echo "FEAT_NAME=" >> $GITHUB_ENV - echo "TAG_NAME=rc-$RC_NAME" >> $GITHUB_ENV + echo "TAG_NAME=$RC_NAME" >> $GITHUB_ENV - if: github.ref_name == 'master' run: | echo "FEAT_NAME=" >> $GITHUB_ENV diff --git a/.github/workflows/setup-release-candidate.yml b/.github/workflows/setup-release-candidate.yml index 6729ee494c4..97e5aa5adfb 100644 --- a/.github/workflows/setup-release-candidate.yml +++ b/.github/workflows/setup-release-candidate.yml @@ -43,9 +43,12 @@ jobs: - name: Calculate Release Versions id: release-version + env: + CUSTOM_VERSION: ${{ inputs.customVersion }} + VERSION_INCREMENT: ${{ inputs.versionIncrement }} run: | - customVersion="${{ inputs.customVersion }}" - versionIncrement="${{ inputs.versionIncrement }}" + customVersion="$CUSTOM_VERSION" + versionIncrement="$VERSION_INCREMENT" increment_version() { local currentVersion=$1 @@ -84,7 +87,7 @@ jobs: # Use date-based branch naming instead of version-based because we release # both extensions (toolkit and amazonq) from the same branch, and they may # have different version numbers. We can change this in the future - echo "BRANCH_NAME=rc-$(date +%Y%m%d)" >> $GITHUB_OUTPUT + echo "BRANCH_NAME=release/rc-$(date +%Y%m%d)" >> $GITHUB_OUTPUT - name: Create RC Branch and Update Versions env: