File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 95
95
96
96
- name : Update Downstream Repository Version
97
97
run : |
98
- set -euxo pipefail
98
+ set -uxo pipefail
99
99
VERSION_FILE_PATH="$GITHUB_WORKSPACE/$GIT_REPO_NAME/cd-pipelines/docs/dev-setup-variables.yaml"
100
100
101
101
echo "VERSION_FILE_PATH: $VERSION_FILE_PATH"
@@ -112,11 +112,17 @@ jobs:
112
112
# Replacing the current version line with the new version line
113
113
sed -i 's|'"${CURRENT_VERSION_LINE}"'| GITHUB_RELEASE_TAG: v'"${{ env.NEW_VERSION }}"'|' "$VERSION_FILE_PATH"
114
114
115
+ echo "Updated the downstream version file to ${{ env.NEW_VERSION }}"
116
+
115
117
# Verifying if the file has changed, and if so, committing and pushing it
116
118
if git status --porcelain; then
117
119
git config user.name $GIT_USERNAME
118
120
git config user.email $GIT_USER_EMAIL
119
121
git add "$VERSION_FILE_PATH"
120
122
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
You can’t perform that action at this time.
0 commit comments