File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -107,11 +107,10 @@ jobs:
107
107
git checkout $GIT_BRANCH_NAME
108
108
109
109
# Extracting the current version line from the YAML file
110
- CURRENT_VERSION_LINE=$(grep "$VERSION_LINE_PREFIX" "$VERSION_FILE_PATH" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//' )
110
+ CURRENT_VERSION_LINE=$(grep "$VERSION_LINE_PREFIX" "$VERSION_FILE_PATH")
111
111
112
112
# Replacing the current version line with the new version line
113
- NEW_VERSION_LINE="${VERSION_LINE_PREFIX}${{ env.NEW_VERSION }}"
114
- sed -i 's|'"${CURRENT_VERSION_LINE}"'|'"${NEW_VERSION_LINE}"'|' "$VERSION_FILE_PATH"
113
+ sed -i 's|'"${CURRENT_VERSION_LINE}"'| GITHUB_RELEASE_TAG: v'"${{ env.NEW_VERSION }}"'|' "$VERSION_FILE_PATH"
115
114
116
115
# Verifying if the file has changed, and if so, committing and pushing it
117
116
if git status --porcelain; then
You can’t perform that action at this time.
0 commit comments