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 }}"