Skip to content

Commit

Permalink
Simplify build scan workflow by publishing only for approved developers
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet authored and DavideD committed Nov 27, 2023
1 parent 8c8637d commit d81df90
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 39 deletions.
56 changes: 56 additions & 0 deletions .github/develocity-preapproved-developers.json
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"
]
}
28 changes: 22 additions & 6 deletions .github/workflows/develocity-publish-build-scans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,36 @@ on:
workflows: [ "Quarkus CI" ]
types: [ completed ]

defaults:
run:
shell: bash

jobs:
publish-build-scans:
if: github.repository == 'quarkusio/quarkus'
if: github.repository == 'quarkusio/quarkus' && github.event.workflow_run.event == 'pull_request'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Verify Terms of Service acceptance job passed
uses: gradle/github-actions/terms-of-service-acceptance/verify@v1-beta
with:
terms-of-service-acceptance-workflow-job-name: 'run-terms-of-service-acceptance'
- 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
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}
33 changes: 0 additions & 33 deletions .github/workflows/develocity-verify-tos.yml

This file was deleted.

0 comments on commit d81df90

Please sign in to comment.