mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
7e397f7fbf
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 2 to 3. - [Release notes](https://github.com/dawidd6/action-download-artifact/releases) - [Commits](https://github.com/dawidd6/action-download-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: dawidd6/action-download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Submit coverage
|
|
|
|
# read-write repo token
|
|
# access to secrets
|
|
on:
|
|
workflow_run:
|
|
workflows: [Build and test]
|
|
types: [completed]
|
|
|
|
env:
|
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
|
|
jobs:
|
|
upload:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.workflow_run.conclusion == 'success'
|
|
steps:
|
|
- name: Download artifact
|
|
uses: dawidd6/action-download-artifact@v3
|
|
with:
|
|
workflow: ${{ github.event.workflow_run.workflow_id }}
|
|
workflow_conclusion: success
|
|
name: coveralls.json
|
|
|
|
|
|
- name: 'Prepare dependencies'
|
|
run: |
|
|
sudo apt-get update && \
|
|
sudo apt-get install -yq \
|
|
jq \
|
|
curl
|
|
shell: bash
|
|
|
|
- name: 'Generate full report'
|
|
run: |
|
|
cat coveralls.json | jq --arg repo_token $COVERALLS_REPO_TOKEN '. += {repo_token: $repo_token}' > coveralls_full.json
|
|
shell: bash
|
|
|
|
- name: 'Upload final report'
|
|
run: |
|
|
curl --request POST \
|
|
--url https://coveralls.io/api/v1/jobs \
|
|
--header 'Content-Type: multipart/form-data' \
|
|
--form json_file=@./coveralls_full.json
|
|
shell: bash
|