Skip to content

Commit

Permalink
Merge pull request #38005 from gsmet/publish-build-scan-order
Browse files Browse the repository at this point in the history
Display Json output before injecting build scans
  • Loading branch information
gsmet authored Jan 3, 2024
2 parents c770f23 + 221f8b9 commit d1bcf1b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/develocity-publish-build-scans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ jobs:
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
skip-comment: true
skip-summary: true
- name: Output JSON file
run: |
if [ -f "${{ steps.publish.outputs.build-metadata-file-path }}" ]; then
echo "```json" >> $GITHUB_STEP_SUMMARY
jq '.' ${{ steps.publish.outputs.build-metadata-file-path }} >> $GITHUB_STEP_SUMMARY
echo "\n```" >> $GITHUB_STEP_SUMMARY;
fi
- name: Inject build scans in reports
uses: quarkusio/action-helpers@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
action: inject-build-scans
workflow-run-id: ${{ github.event.workflow_run.id }}
build-metadata-file-path: ${{ steps.publish.outputs.build-metadata-file-path }}
- name: Output JSON file
run: |
if [ -f "${{ steps.publish.outputs.build-metadata-file-path }}" ]; then jq '.' ${{ steps.publish.outputs.build-metadata-file-path }} >> $GITHUB_STEP_SUMMARY; fi

0 comments on commit d1bcf1b

Please sign in to comment.