Skip to content

Commit

Permalink
Merge pull request #4122 from ashensw/asgardeo-docs
Browse files Browse the repository at this point in the history
Improve asgardeo docs release workflow
  • Loading branch information
ashensw authored Nov 10, 2023
2 parents 680cb56 + eb71220 commit 8779a74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release-asgardeo-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@ 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" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
CURRENT_VERSION_LINE=$(grep "$VERSION_LINE_PREFIX" "$VERSION_FILE_PATH")
# Replacing the current version line with the new version line
NEW_VERSION_LINE="${VERSION_LINE_PREFIX}${{ env.NEW_VERSION }}"
sed -i 's|'"${CURRENT_VERSION_LINE}"'|'"${NEW_VERSION_LINE}"'|' "$VERSION_FILE_PATH"
sed -i 's|'"${CURRENT_VERSION_LINE}"'| GITHUB_RELEASE_TAG: v'"${{ env.NEW_VERSION }}"'|' "$VERSION_FILE_PATH"
# Verifying if the file has changed, and if so, committing and pushing it
if git status --porcelain; then
Expand Down

0 comments on commit 8779a74

Please sign in to comment.