Skip to content

Commit

Permalink
Fix coverage check
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 26248f8 commit 4b9a1bd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:

- name: 📥 Download artifact
uses: actions/download-artifact@v4
id: download
if: ${{ !inputs.sharded }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -53,19 +52,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 == ''
- name: Check coverage artifact
run: |
echo "Failed to download coverage artifact"
exit 1
if [ ! -d coverage ]; then
echo "Coverage not found. Exiting with failure."
exit 1
fi
- id: extra_args
run: |
Expand Down

0 comments on commit 4b9a1bd

Please sign in to comment.