forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request quarkusio#36473 from gsmet/build-scan-for-prs
Enable publication of build scans for PRs coming from forks
- Loading branch information
Showing
3 changed files
with
152 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"preapproved-developers": [ | ||
"alesj", | ||
"aloubyansky", | ||
"aureamunoz", | ||
"brunobat", | ||
"cescoffier", | ||
"DavideD", | ||
"dmlloyd", | ||
"ebullient", | ||
"emmanuelbernard", | ||
"evanchooly", | ||
"FroMage", | ||
"galderz", | ||
"gastaldi", | ||
"geoand", | ||
"gsmet", | ||
"gwenneg", | ||
"holly-cummins", | ||
"ia3andy", | ||
"iocanel", | ||
"jmartisk", | ||
"johnaohara", | ||
"jponge", | ||
"karesti", | ||
"Karm", | ||
"Ladicek", | ||
"machi1990", | ||
"manovotn", | ||
"manusa", | ||
"maxandersen", | ||
"metacosm", | ||
"MichalMaler", | ||
"michalvavrik", | ||
"michelle-purcell", | ||
"MikeEdgar", | ||
"mkouba", | ||
"n1hility", | ||
"ozangunalp", | ||
"patriot1burke", | ||
"pedroigor", | ||
"phillip-kruger", | ||
"ppalaga", | ||
"radcortez", | ||
"rsvoboda", | ||
"Sanne", | ||
"sberyozkin", | ||
"Sgitario", | ||
"stalep", | ||
"starksm64", | ||
"stuartwdouglas", | ||
"tsegismont", | ||
"yrodiere", | ||
"zakkak" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Extract preapproved developers list | ||
id: extract-preapproved-developers | ||
run: | | ||
preapproveddevelopers=$(cat .github/develocity-preapproved-developers.json) | ||
echo "preapproved-developpers=${preapproveddevelopers}" >> $GITHUB_OUTPUT | ||
- name: Publish Maven Build Scans | ||
uses: gradle/github-actions/maven-build-scan/publish@v1-beta | ||
if: ${{ contains(fromJson(steps.extract-preapproved-developers.outputs.preapproved-developpers).preapproved-developers, github.event.workflow_run.actor.login) }} | ||
with: | ||
develocity-url: 'https://ge.quarkus.io' | ||
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
skip-comment: true | ||
- name: Push to summary | ||
run: | | ||
echo -n "Pull request: " >> ${GITHUB_STEP_SUMMARY} | ||
cat pr-number.out >> ${GITHUB_STEP_SUMMARY} | ||
echo >> ${GITHUB_STEP_SUMMARY} | ||
echo >> ${GITHUB_STEP_SUMMARY} | ||
echo "| Job | Status | Build scan |" >> ${GITHUB_STEP_SUMMARY} | ||
echo "|---|---|---|" >> ${GITHUB_STEP_SUMMARY} | ||
cat publication.out >> ${GITHUB_STEP_SUMMARY} |