Skip to content

Commit 8779a74

Browse files
authored
Merge pull request #4122 from ashensw/asgardeo-docs
Improve asgardeo docs release workflow
2 parents 680cb56 + eb71220 commit 8779a74

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release-asgardeo-docs.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,10 @@ jobs:
107107
git checkout $GIT_BRANCH_NAME
108108
109109
# 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")
111111
112112
# 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"
115114
116115
# Verifying if the file has changed, and if so, committing and pushing it
117116
if git status --porcelain; then

0 commit comments

Comments
 (0)