3333 - OFF
3434
3535 steps :
36- - uses : actions/checkout@v2
36+ - uses : actions/checkout@v3
3737
3838 - name : Setup Cache
3939 uses : ./.github/actions/setup_cache
7474 - name : Insert new org and project
7575 run : |
7676 # rename the CMake project to match the github project
77- find src include test fuzz_test cmake -type f -exec sed -i "s/myproject/${{ env.NEW_SAFE_PROJECT }}/gi" CMakeLists.txt Dependencies.cmake ProjectOptions.cmake .github/workflows/ci.yml .github/workflows/codeql-analysis.yml configured_files/config.hpp.in {} +
77+ find src include test fuzz_test cmake -type f -exec sed -i "s/myproject/${{ env.NEW_SAFE_PROJECT }}/gi" .github/constants.env CMakeLists.txt Dependencies.cmake ProjectOptions.cmake .github/workflows/ci.yml .github/workflows/codeql-analysis.yml configured_files/config.hpp.in {} +
7878
7979 # Update URL placeholders for project
8080 sed -i "s|%%myurl%%|${{ fromJson(steps.get_repo_meta.outputs.data).html_url }}|gi" CMakeLists.txt
@@ -122,20 +122,28 @@ jobs:
122122 gcovr : false
123123 opencppcoverage : false
124124
125+ - name : Project Name
126+ uses : cardinalby/export-env-action@v2
127+ with :
128+ envFile : ' .github/constants.env'
129+
130+
125131
126132 - name : Test simple configuration to make sure nothing broke
127133 run : |
128- cmake -S . -B ./build -G "${{ matrix.generator }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.build_type }} -DENABLE_DEVELOPER_MODE:BOOL= ${{ matrix.developer_mode }} -DOPT_ENABLE_COVERAGE :BOOL=OFF
134+ cmake -S . -B ./build -G "${{ matrix.generator }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.build_type }} -D ${{ env.NEW_SAFE_PROJECT }}_PACKAGING_MAINTAINER_MODE :BOOL=ON
129135 # Build it because we may have broken something in the cpp/hpp files
130136 cmake --build build
131137
132- - uses : EndBug/add-and-commit@v4
138+ - uses : EndBug/add-and-commit@v9
133139 # only commit and push if we are not a template project anymore!
134140 if : fromJson(steps.get_repo_meta.outputs.data).is_template != true
135141 with :
142+ add : -A
136143 author_name : Template Janitor
137144 author_email : template.janitor@example.com
138145 message : ' Cleanup template and initialize repository'
146+ pathspec_error_handling : exitImmediately
139147 env :
140148 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
141149
@@ -156,7 +164,7 @@ jobs:
156164 - OFF
157165
158166 steps :
159- - uses : actions/checkout@v2
167+ - uses : actions/checkout@v3
160168
161169 - name : Setup Cache
162170 uses : ./.github/actions/setup_cache
@@ -223,14 +231,16 @@ jobs:
223231
224232 - name : Test simple configuration to make sure nothing broke (default compiler,cmake,developer_mode OFF)
225233 run : |
226- cmake -S . -B ./build -G "${{ matrix.generator }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.build_type }} -DENABLE_DEVELOPER_MODE:BOOL= ${{ matrix.developer_mode }} -DOPT_ENABLE_COVERAGE :BOOL=OFF
234+ cmake -S . -B ./build -G "${{ matrix.generator }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.build_type }} -D ${{ env.PROJECT_NAME }}_PACKAGING_MAINTAINER_MODE :BOOL=ON
227235
228- - uses : EndBug/add-and-commit@v4
236+ - uses : EndBug/add-and-commit@v9
229237 # only commit and push if we are a template and project name has changed
230238 if : fromJson(steps.get_repo_meta.outputs.data).is_template == true && env.TEST_RUN == 'false'
231239 with :
240+ add : -A
232241 author_name : Template Janitor
233242 author_email : template.janitor@example.com
234243 message : ' Change Template Name'
244+ pathspec_error_handling : exitImmediately
235245 env :
236246 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments