File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88 workflow_dispatch :
99 inputs :
10+ summary :
11+ description : ' Release Summary'
12+ required : false
13+ type : string
14+ default : ' '
1015 publish :
1116 description : ' Create Production Release'
1217 required : true
1520 description : ' Skip Tests'
1621 required : true
1722 type : boolean
23+ updatecoverage :
24+ description : ' Update Baseline Coverage'
25+ default : true
26+ required : true
27+ type : boolean
1828 dryrun :
1929 description : ' Dry Run'
2030 required : true
2131 type : boolean
22- summary :
23- description : ' Summary'
24- required : false
25- type : string
26- default : ' '
2732
2833jobs :
2934 # -----------------------------------------------------------------
@@ -307,6 +312,19 @@ jobs:
307312 body : ${{ steps.covprocess.outputs.changelog }}
308313 artifacts : " /home/runner/work/release/release.tar.gz,coverage.json,historical-coverage.json"
309314 token : ${{ secrets.GITHUB_TOKEN }}
315+
316+ - name : Update Baseline Coverage
317+ uses : ncipollo/release-action@v1
318+ if : ${{ github.event.inputs.updatecoverage == 'true' && github.event.inputs.dryrun == 'false' }}
319+ with :
320+ allowUpdates : true
321+ tag : baseline
322+ omitBodyDuringUpdate : true
323+ omitNameDuringUpdate : true
324+ omitPrereleaseDuringUpdate : true
325+ replacesArtifacts : true
326+ artifacts : " coverage.json"
327+ token : ${{ secrets.GITHUB_TOKEN }}
310328
311329 - name : Upload Build Artifacts
312330 uses : actions/upload-artifact@v2.3.1
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ echo "Creating data directories..."
1717chmod +x ./docker/scripts/app-create-dirs.sh
1818./docker/scripts/app-create-dirs.sh
1919echo " Fetching latest coverage results file..."
20- curl -fsSL https://github.com/ietf-tools/datatracker/releases/latest/ download/coverage.json -o release-coverage.json
20+ curl -fsSL https://github.com/ietf-tools/datatracker/releases/download/baseline /coverage.json -o release-coverage.json
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ chmod +x ./docker/scripts/app-create-dirs.sh
8282# Download latest coverage results file
8383
8484echo " Downloading latest coverage results file..."
85- curl -fsSL https://github.com/ietf-tools/datatracker/releases/latest/ download/coverage.json -o release-coverage.json
85+ curl -fsSL https://github.com/ietf-tools/datatracker/releases/download/baseline /coverage.json -o release-coverage.json
8686
8787# Wait for DB container
8888
You can’t perform that action at this time.
0 commit comments