Skip to content

Commit ae4c0be

Browse files
Merge pull request #1682 from swastik959/workflow
corrected workflow to extract the correct branch name
2 parents b769fbb + 404918a commit ae4c0be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ jobs:
168168
run: |
169169
CURRENT_BRANCH="${{ github.ref_name }}"
170170
BASE_VERSION=$(echo "$CURRENT_BRANCH" | sed -E 's/^[^v]*(v[0-9]+\.[0-9]+).*/\1/')
171-
TARGET_BRANCH="dev-${BASE_VERSION}"
171+
TRANSFORMED_VERSION="${BASE_VERSION/v1./v2.}"
172+
TARGET_BRANCH="dev-${TRANSFORMED_VERSION}"
172173
VERSION_OVERRIDE="minor"
173174
gh workflow run "Manual Trigger for Auto Bump" \
174175
--repo rancher/charts \

0 commit comments

Comments
 (0)