message: ci(coverage): use script to download artifact
diff: @@ -16,10 +16,28 @@ jobs:
  # github.actor != 'dependabot[bot]'
  # }}
  steps:
  - - name: Downloading code coverage artifacts
  - uses: actions/download-artifact@v3
  + - name: 'Download artifact'
  + uses: actions/github-script@v3.1.0
  with:
  - name: coverage
  + 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}}/pr.zip', Buffer.from(download.data));
  + - name: Unzipping artifact
  + run: unzip coverage.zip
  - name: Display structure of downloaded files
  run: ls -R
  - name: Send coverage report
  