File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 48
48
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}"
49
49
echo "New version: $NEW_VERSION"
50
50
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
51
- echo "$NEW_VERSION" > VERSION
52
51
shell : bash
53
52
54
53
- name : Build MkDocs Documentation
95
94
96
95
- name : Update Downstream Repository Version
97
96
run : |
98
- set -uxo pipefail
97
+ set -euxo pipefail
99
98
VERSION_FILE_PATH="$GITHUB_WORKSPACE/$GIT_REPO_NAME/cd-pipelines/docs/dev-setup-variables.yaml"
100
-
101
- echo "VERSION_FILE_PATH: $VERSION_FILE_PATH"
102
99
VERSION_LINE_PREFIX='GITHUB_RELEASE_TAG: v' # Line prefix to identify the version line
103
100
104
101
# Clone the downstream repository
@@ -112,8 +109,6 @@ jobs:
112
109
# Replacing the current version line with the new version line
113
110
sed -i 's|'"${CURRENT_VERSION_LINE}"'| GITHUB_RELEASE_TAG: v'"${{ env.NEW_VERSION }}"'|' "$VERSION_FILE_PATH"
114
111
115
- echo "Updated the downstream version file to ${{ env.NEW_VERSION }}"
116
-
117
112
# Verifying if the file has changed, and if so, committing and pushing it
118
113
if git status --porcelain; then
119
114
git config user.name $GIT_USERNAME
You can’t perform that action at this time.
0 commit comments