Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:

workflow_dispatch:
inputs:
summary:
description: 'Release Summary'
required: false
type: string
default: ''
publish:
description: 'Create Production Release'
required: true
Expand All @@ -15,15 +20,15 @@ on:
description: 'Skip Tests'
required: true
type: boolean
updatecoverage:
description: 'Update Baseline Coverage'
default: true
required: true
type: boolean
dryrun:
description: 'Dry Run'
required: true
type: boolean
summary:
description: 'Summary'
required: false
type: string
default: ''

jobs:
# -----------------------------------------------------------------
Expand Down Expand Up @@ -307,6 +312,19 @@ jobs:
body: ${{ steps.covprocess.outputs.changelog }}
artifacts: "/home/runner/work/release/release.tar.gz,coverage.json,historical-coverage.json"
token: ${{ secrets.GITHUB_TOKEN }}

- name: Update Baseline Coverage
uses: ncipollo/release-action@v1
if: ${{ github.event.inputs.updatecoverage == 'true' && github.event.inputs.dryrun == 'false' }}
with:
allowUpdates: true
tag: baseline
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
replacesArtifacts: true
artifacts: "coverage.json"
token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Build Artifacts
uses: actions/upload-artifact@v2.3.1
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ echo "Creating data directories..."
chmod +x ./docker/scripts/app-create-dirs.sh
./docker/scripts/app-create-dirs.sh
echo "Fetching latest coverage results file..."
curl -fsSL https://github.com/ietf-tools/datatracker/releases/latest/download/coverage.json -o release-coverage.json
curl -fsSL https://github.com/ietf-tools/datatracker/releases/download/baseline/coverage.json -o release-coverage.json
2 changes: 1 addition & 1 deletion docker/scripts/app-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ chmod +x ./docker/scripts/app-create-dirs.sh
# Download latest coverage results file

echo "Downloading latest coverage results file..."
curl -fsSL https://github.com/ietf-tools/datatracker/releases/latest/download/coverage.json -o release-coverage.json
curl -fsSL https://github.com/ietf-tools/datatracker/releases/download/baseline/coverage.json -o release-coverage.json

# Wait for DB container

Expand Down