Skip to content

Commit f6a5b0b

Browse files
committed
testing
1 parent 25b2070 commit f6a5b0b

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,28 @@ jobs:
168168
github-token: ${{ secrets.GITHUB_TOKEN }}
169169
repository: ${{ github.repository }}
170170

171-
- name: Coverage Report as Comment (Clover)
171+
- name: Install tree
172+
run: sudo apt-get update && sudo apt-get install -y tree
173+
174+
- name: Show full directory tree
175+
run: tree
176+
177+
- name: List artifacts programmatically
178+
env:
179+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
180+
run: |
181+
# List artifacts for current workflow run
182+
artifacts=$(curl -L \
183+
-H "Accept: application/vnd.github+json" \
184+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
185+
-H "X-GitHub-Api-Version: 2022-11-28" \
186+
"${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts")
187+
188+
echo "$artifacts" | jq '.'
189+
190+
- name: Comment the new code coverage
172191
uses: lucassabreu/comment-coverage-clover@main
192+
continue-on-error: true
173193
with:
174194
file: ./coverage/clover.xml
175195
base-file: ./previous-coverage/clover.xml

0 commit comments

Comments
 (0)