Skip to content

Develocity - Publish Maven Build Scans #49

Develocity - Publish Maven Build Scans

Develocity - Publish Maven Build Scans #49

name: Develocity - Publish Maven Build Scans
on:
workflow_run:
workflows: [ "Quarkus CI" ]
types: [ completed ]
defaults:
run:
shell: bash
jobs:
publish-build-scans:
if: github.repository == 'quarkusio/quarkus' && github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion != 'cancelled'
runs-on: ubuntu-latest
permissions:
pull-requests: write
checks: write
steps:
- name: Publish Maven Build Scans
uses: gradle/github-actions/maven-build-scan/publish@v1-beta
with:
develocity-url: 'https://ge.quarkus.io'
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
skip-comment: true
- 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 }}
- name: Output JSON file
run: |
if [ -f build-metadata.json ]; then jq '.' build-metadata.json >> $GITHUB_STEP_SUMMARY; fi