File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments