Skip to content

Commit ea6c931

Browse files
authored
ci: add coverage-action to release workflow
1 parent de8ec12 commit ea6c931

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,20 @@ jobs:
208208
tag: ${{ env.PKG_VERSION }}
209209
writeToFile: false
210210

211+
- name: Process Coverage Stats + Chart
212+
id: covprocess
213+
uses: ./dev/coverage-action/
214+
if: ${{ github.event.inputs.skiptests == 'false' }}
215+
with:
216+
token: ${{ github.token }}
217+
tokenCommon: ${{ secrets.GH_COMMON_TOKEN }}
218+
repoCommon: common
219+
version: ${{needs.prepare.outputs.pkg_version}}
220+
changelog: ${{ steps.changelog.outputs.changes }}
221+
summary: ${{ github.event.inputs.summary }}
222+
coverageResultsPath: coverage.json
223+
histCoveragePath: historical-coverage.json
224+
211225
- name: Create Release
212226
uses: ncipollo/release-action@v1
213227
if: env.SHOULD_DEPLOY == 'true'
@@ -216,7 +230,7 @@ jobs:
216230
draft: false
217231
tag: ${{ env.PKG_VERSION }}
218232
name: ${{ env.PKG_VERSION }}
219-
body: ${{ steps.changelog.outputs.changes }}
233+
body: ${{ steps.covprocess.outputs.changelog }}
220234
artifacts: "/home/runner/work/release/release.tar.gz,coverage.json"
221235
token: ${{ secrets.GITHUB_TOKEN }}
222236

0 commit comments

Comments
 (0)