Skip to content

Commit 221f8b9

Browse files
committed
Display Json output before injecting build scans
Makes debugging a lot easier.
1 parent c770f23 commit 221f8b9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/develocity-publish-build-scans.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ jobs:
2828
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
2929
skip-comment: true
3030
skip-summary: true
31+
- name: Output JSON file
32+
run: |
33+
if [ -f "${{ steps.publish.outputs.build-metadata-file-path }}" ]; then
34+
echo "```json" >> $GITHUB_STEP_SUMMARY
35+
jq '.' ${{ steps.publish.outputs.build-metadata-file-path }} >> $GITHUB_STEP_SUMMARY
36+
echo "\n```" >> $GITHUB_STEP_SUMMARY;
37+
fi
3138
- name: Inject build scans in reports
3239
uses: quarkusio/action-helpers@main
3340
with:
3441
github-token: ${{ secrets.GITHUB_TOKEN }}
3542
action: inject-build-scans
3643
workflow-run-id: ${{ github.event.workflow_run.id }}
3744
build-metadata-file-path: ${{ steps.publish.outputs.build-metadata-file-path }}
38-
- name: Output JSON file
39-
run: |
40-
if [ -f "${{ steps.publish.outputs.build-metadata-file-path }}" ]; then jq '.' ${{ steps.publish.outputs.build-metadata-file-path }} >> $GITHUB_STEP_SUMMARY; fi
41-

0 commit comments

Comments
 (0)