From 5f3a02c165a0e38f13311af6b90e5d8af2f1f391 Mon Sep 17 00:00:00 2001 From: ashensw Date: Fri, 10 Nov 2023 13:11:02 +0530 Subject: [PATCH] Improve asgardeo docs release workflow --- .github/workflows/release-asgardeo-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-asgardeo-docs.yml b/.github/workflows/release-asgardeo-docs.yml index 25ead7e9ac..0cb0d6868e 100644 --- a/.github/workflows/release-asgardeo-docs.yml +++ b/.github/workflows/release-asgardeo-docs.yml @@ -107,7 +107,7 @@ jobs: git checkout $GIT_BRANCH_NAME # Extracting the current version line from the YAML file - CURRENT_VERSION_LINE=$(grep "$VERSION_LINE_PREFIX" "$VERSION_FILE_PATH") + CURRENT_VERSION_LINE=$(grep "$VERSION_LINE_PREFIX" "$VERSION_FILE_PATH" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//') # Replacing the current version line with the new version line NEW_VERSION_LINE="${VERSION_LINE_PREFIX}${{ env.NEW_VERSION }}"