6363 # Steps represent a sequence of tasks that will be executed as part of the job
6464 steps :
6565 - name : Check out the repository
66- uses : actions/checkout@v4
66+ uses : actions/checkout@v4.2.2
6767 with :
6868 submodules : true
6969
8686
8787 - name : Upload Test Results
8888 if : success() || failure()
89- 89+ 9090 with :
9191 name : test_reports ${{ inputs.result_affix }}
9292 path : |
9595 ${{ inputs.cmake_path }}/build/**/regression/output_files/*.bin
9696
9797 - name : Configure GitHub Pages
98- uses : actions/configure-pages@v3 .0.6
98+ uses : actions/configure-pages@v5 .0.0
9999
100100 - name : Generate Code Coverage Results Summary
101101 if : (!inputs.skip_coverage)
@@ -115,7 +115,7 @@ jobs:
115115
116116 - name : Create CheckRun for Code Coverage
117117 if : ((github.event_name == 'push') || (github.event_name == 'workflow_dispatch') || (github.event.pull_request.head.repo.full_name == github.repository)) && (!inputs.skip_coverage)
118- uses : LouisBrunner/checks-action@v1.6.2
118+ uses : LouisBrunner/checks-action@v2.0.0
119119 with :
120120 token : ${{ secrets.GITHUB_TOKEN }}
121121 name : Code Coverage ${{ inputs.result_affix }}
@@ -126,7 +126,7 @@ jobs:
126126
127127 - name : Add Code Coverage PR Comment
128128 if : ((github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository)) && (!inputs.skip_coverage)
129- uses : marocchino/sticky-pull-request-comment@v2
129+ uses : marocchino/sticky-pull-request-comment@v2.9.4
130130 with :
131131 header : Code Coverage ${{ inputs.result_affix }}
132132 path : code-coverage-results.md
@@ -139,17 +139,22 @@ jobs:
139139 sudo mv ${{ inputs.cmake_path }}/coverage_report/${{ inputs.coverage_name }} \
140140 ${{ inputs.cmake_path }}/coverage_report/${{ inputs.result_affix }}
141141 fi
142-
142+
143+ - name : Coverage Report name
144+ id : artifact
145+ if : (!inputs.skip_coverage)
146+ run : echo "coverage_report=coverage_report-$(date +%s)" >> $GITHUB_OUTPUT
147+
143148 - name : Upload Code Coverage Artifacts
144- 149+ 145150 if : (inputs.skip_deploy && !inputs.skip_coverage)
146151 with :
147- name : coverage_report
148- path : ${{ inputs.cmake_path }}/coverage_report
149- retention-days : 1
150-
152+ name : ${{ steps.artifact.outputs. coverage_report }}
153+ path : ${{ inputs.cmake_path }}/coverage_report
154+ retention-days : 1
155+
151156 - name : Upload Code Coverage Pages
152- uses : actions/upload-pages-artifact@v2 .0.0
157+ uses : actions/upload-pages-artifact@v3 .0.1
153158 if : (!inputs.skip_deploy && !inputs.skip_coverage)
154159 with :
155160 path : ${{ inputs.cmake_path }}/coverage_report/${{ inputs.coverage_name }}
@@ -166,25 +171,26 @@ jobs:
166171 id-token : write
167172
168173 steps :
169- - uses : actions/download-artifact@v4.1.7
174+ - uses : actions/download-artifact@v4.3.0
170175 if : ${{ inputs.skip_test }}
171176 with :
172- name : coverage_report
177+ name : ${{ steps.artifact.outputs.coverage_report }}
178+ path : ${{ inputs.cmake_path }}/coverage_report
173179
174180 - name : Upload Code Coverage Pages
175- uses : actions/upload-pages-artifact@v2 .0.0
181+ uses : actions/upload-pages-artifact@v3 .0.1
176182 if : ${{ inputs.skip_test }}
177183 with :
178184 path : .
179185
180186 - name : Delete Duplicate Code Coverage Artifact
181- uses : geekyeggo/delete-artifact@v2
187+ uses : geekyeggo/delete-artifact@v5.1.0
182188 with :
183189 name : coverage_report
184190
185191 - name : Deploy GitHub Pages site
186192 id : deployment
187- uses : actions/deploy-pages@v1.2.9
193+ uses : actions/deploy-pages@v4.0.5
188194
189195 - name : Write Code Coverage Report URL
190196 run : >-
0 commit comments