Skip to content

Commit 4546ec9

Browse files
authored
Merge pull request #4123 from ashensw/asgardeo-docs
Improve asgardeo docs release workflow
2 parents 330d695 + 5eddc98 commit 4546ec9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

+9-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
9696
- name: Update Downstream Repository Version
9797
run: |
98-
set -euxo pipefail
98+
set -uxo pipefail
9999
VERSION_FILE_PATH="$GITHUB_WORKSPACE/$GIT_REPO_NAME/cd-pipelines/docs/dev-setup-variables.yaml"
100100
101101
echo "VERSION_FILE_PATH: $VERSION_FILE_PATH"
@@ -112,11 +112,17 @@ jobs:
112112
# Replacing the current version line with the new version line
113113
sed -i 's|'"${CURRENT_VERSION_LINE}"'| GITHUB_RELEASE_TAG: v'"${{ env.NEW_VERSION }}"'|' "$VERSION_FILE_PATH"
114114
115+
echo "Updated the downstream version file to ${{ env.NEW_VERSION }}"
116+
115117
# Verifying if the file has changed, and if so, committing and pushing it
116118
if git status --porcelain; then
117119
git config user.name $GIT_USERNAME
118120
git config user.email $GIT_USER_EMAIL
119121
git add "$VERSION_FILE_PATH"
120122
git commit -m "[Dev] Update asgardeo-docs release version to ${{ env.NEW_VERSION }}"
121-
git push origin $GIT_BRANCH_NAME
122-
shell: bash
123+
git push origin $GIT_BRANCH_NAME
124+
125+
echo "Updated the downstream repository version to ${{ env.NEW_VERSION }}"
126+
else
127+
echo "No changes to the downstream repository version"
128+
fi

0 commit comments

Comments
 (0)