-
Notifications
You must be signed in to change notification settings - Fork 2.7k
46 lines (43 loc) · 1.57 KB
/
develocity-publish-build-scans.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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:
actions: write
pull-requests: write
checks: write
steps:
- name: Setup Build Scan link capture
id: setup
uses: gradle/develocity-actions/setup-maven@v1.3
with:
add-pr-comment: false
add-job-summary: true
- name: Publish Maven Build Scans
id: publish
uses: gradle/develocity-actions/maven-publish-build-scan@v1.3
with:
develocity-url: 'https://ge.quarkus.io'
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- name: Output JSON file
run: |
if [ -f "${{ steps.setup.outputs.build-metadata-file-path }}" ]; then
echo "```json" >> $GITHUB_STEP_SUMMARY
jq '.' ${{ steps.setup.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.setup.outputs.build-metadata-file-path }}