Skip to content

Commit

Permalink
refactor: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tung-Huynh-Shopmacher committed Aug 13, 2024
1 parent f557963 commit 4897d92
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,14 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: processor/junit-report.xml
path: processor/junit-report.xml

- name: Confirm Artifact Upload
run: |
echo "Checking for uploaded artifacts..."
if [ ! "$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -s https://api.github.com/repos/${{ github.repository }}/actions/artifacts | jq '.artifacts[] | select(.name=="code-coverage-report") | .name')" ]; then
echo "Artifact 'code-coverage-report' not found!"
exit 1
else
echo "Artifact 'code-coverage-report' found successfully."
fi

0 comments on commit 4897d92

Please sign in to comment.