2222 uses : actions/checkout@v4
2323
2424 - name : update project files
25+ id : update_files
2526 run : |
2627 VER="${{ github.event.inputs.target_version }}"
2728 SOVER="${{ github.event.inputs.target_soversion }}"
@@ -36,13 +37,11 @@ jobs:
3637 fi
3738 fi
3839
39- # 2. meson.build: targeting keys directly (safer for multi-line)
40+ # 2. meson.build: targeting keys directly
4041 if [ -f meson.build ]; then
4142 echo "updating meson.build"
42- # matches 'version : '1.9.6''
4343 sed -i "s/version[[:space:]]*:[[:space:]]*['][0-9.]*[']/version : '$VER'/" meson.build
4444 if [ -n "$SOVER" ]; then
45- # matches 'soversion : '26''
4645 sed -i "s/soversion[[:space:]]*:[[:space:]]*['][0-9]*[']/soversion : '$SOVER'/" meson.build
4746 fi
4847 fi
7978 fi
8079 fi
8180
82- - name : sanity check (cmake configure)
83- run : |
84- if [ -f CMakeLists.txt ]; then
85- mkdir build_check
86- cd build_check
87- cmake .. -DJSONCPP_WITH_TESTS=OFF -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
88- cd ..
89- rm -rf build_check
90- fi
91-
92- - name : create pull request
93- uses : peter-evans/create-pull-request@v7
94- with :
95- token : ${{ secrets.GITHUB_TOKEN }}
96- commit-message : " chore: bump version to ${{ github.event.inputs.target_version }}"
97- branch : " bump-to-${{ github.event.inputs.target_version }}"
98- title : " chore: bump version to ${{ github.event.inputs.target_version }}"
99- body : |
100- automated version bump.
101- - new version: `${{ github.event.inputs.target_version }}`
102- - new soversion: `${{ github.event.inputs.target_soversion || 'no change' }}`
103- labels : " maintenance"
81+ - name :
0 commit comments