File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 8383 run : |
8484 git checkout -b release-prep-$VERSION_NUMBER
8585
86- - name : Update version number in manifest.yml
86+ - name : Update version numbers
8787 shell : bash
8888 env :
8989 VERSION_NUMBER : ${{ inputs.version_number }}
@@ -92,20 +92,20 @@ runs:
9292 if [ -f "./manifest.yml" ]; then
9393 sed -i -b "0,/^version/s/^version.*/version: \"$VERSION_NUMBER\"/g" ./manifest.yml
9494 git add manifest.yml
95- git commit -m '[AUTO][RELEASE]: Update version number in manifest.yml'
9695 fi
97-
98- - name : Update version number in doxygen
99- shell : bash
100- env :
101- VERSION_NUMBER : ${{ inputs.version_number }}
102- working-directory : ${{ github.event.repository.name }}-repository
103- run : |
96+
10497 if [ -f "./docs/doxygen/config.doxyfile" ]; then
10598 sed -i -b "s/PROJECT_NUMBER *=.*/PROJECT_NUMBER = $VERSION_NUMBER/g" ./docs/doxygen/config.doxyfile
10699 git add docs/doxygen/config.doxyfile
107- git commit -m '[AUTO][RELEASE]: Update version number in doxygen'
108100 fi
101+
102+ HEADER_FILE=$(find ./source/include -name "*.h" -type f | head -n 1)
103+ if [ -n "$HEADER_FILE" ]; then
104+ sed -i -b "s/#define [A-Z_]*LIBRARY_VERSION.*/#define $(basename ${HEADER_FILE%.h} | tr '[:lower:]' '[:upper:]' | tr '-' '_')_LIBRARY_VERSION \"$VERSION_NUMBER\"/g" "$HEADER_FILE"
105+ git add "$HEADER_FILE"
106+ fi
107+
108+ git commit -m '[AUTO][RELEASE]: Update version numbers'
109109
110110 - name : Push release preparation branch
111111 shell : bash
You can’t perform that action at this time.
0 commit comments