Skip to content

Commit

Permalink
Update quality.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leducp authored Oct 31, 2024
1 parent 3b60828 commit 7514ee3
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,18 @@ jobs:
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
- name: 'Download artifact'
uses: actions/[email protected]
- name: Create artifacts names
shell: bash
run: |
ARTIFACTS_SHA=$(git rev-parse HEAD)
COV_ARTIFACTS=coverage_${ARTIFACTS_SHA}
- name: Download coverage artifact
uses: dawidd6/action-download-artifact@v6
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id }},
});
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "coverage"
})[0];
var download = await github.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
var fs = require('fs');
fs.writeFileSync('${{github.workspace}}/coverage.zip', Buffer.from(download.data));
- run: unzip coverage.zip
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: build.yml
name: ${{ env.COV_ARTIFACTS }}

- name: coverage
uses: 5monkeys/cobertura-action@master
Expand Down

0 comments on commit 7514ee3

Please sign in to comment.