Skip to content

Commit 43d19cf

Browse files
authored
Merge pull request #4126 from ashensw/asgardeo-docs
Improve asgardeo docs release workflow
2 parents a609a53 + 09fc90c commit 43d19cf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

+1-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ jobs:
4848
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}"
4949
echo "New version: $NEW_VERSION"
5050
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
51-
echo "$NEW_VERSION" > VERSION
5251
shell: bash
5352

5453
- name: Build MkDocs Documentation
@@ -95,10 +94,8 @@ jobs:
9594
9695
- name: Update Downstream Repository Version
9796
run: |
98-
set -uxo pipefail
97+
set -euxo pipefail
9998
VERSION_FILE_PATH="$GITHUB_WORKSPACE/$GIT_REPO_NAME/cd-pipelines/docs/dev-setup-variables.yaml"
100-
101-
echo "VERSION_FILE_PATH: $VERSION_FILE_PATH"
10299
VERSION_LINE_PREFIX='GITHUB_RELEASE_TAG: v' # Line prefix to identify the version line
103100
104101
# Clone the downstream repository
@@ -112,8 +109,6 @@ jobs:
112109
# Replacing the current version line with the new version line
113110
sed -i 's|'"${CURRENT_VERSION_LINE}"'| GITHUB_RELEASE_TAG: v'"${{ env.NEW_VERSION }}"'|' "$VERSION_FILE_PATH"
114111
115-
echo "Updated the downstream version file to ${{ env.NEW_VERSION }}"
116-
117112
# Verifying if the file has changed, and if so, committing and pushing it
118113
if git status --porcelain; then
119114
git config user.name $GIT_USERNAME

0 commit comments

Comments
 (0)