Skip to content

Commit

Permalink
Additional check to ensure artifacts are downloaded
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Nov 21, 2024
1 parent ae2ae48 commit 26248f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:

- name: 📥 Download artifact
uses: actions/download-artifact@v4
id: download
if: ${{ !inputs.sharded }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -52,13 +53,19 @@ jobs:
path: coverage
- name: 📥 Download sharded artifacts
uses: actions/download-artifact@v4
id: download
if: inputs.sharded
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
pattern: coverage-*
path: coverage
merge-multiple: true
- name: Fail if failed to download files
if: steps.download.outputs.download-path == ''
run: |
echo "Failed to download coverage artifact"
exit 1
- id: extra_args
run: |
Expand Down

0 comments on commit 26248f8

Please sign in to comment.