From 93cdde1bd15585171722961bcfda4c87e157c852 Mon Sep 17 00:00:00 2001 From: ethan-wrasman-pkware Date: Thu, 14 Aug 2025 09:32:47 -0500 Subject: [PATCH 1/2] Update publish.yml Fixed the conditionals to read from the merged in branch from a pull request. The old workflow was trying to read from the main branch to see if its reference contains `release` or `snapshot`. --- .github/workflows/publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dbae9c0..7783aaf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,13 +1,15 @@ name: Publish to Maven Central on: - push: + pull_request: + types: [closed] branches: - main + jobs: publish: - if: contains(github.ref, 'release') + if: github.event.pull_request.merged == true && contains(github.event.pull_request.head.ref, 'release') runs-on: ubuntu-latest steps: - name: Checkout code @@ -29,7 +31,7 @@ jobs: ORG_GRADLE_PROJECT_SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} - name: Notify Central Publisher Portal - if: contains(github.ref, 'SNAPSHOT') == false + if: contains(github.event.pull_request.head.ref, 'SNAPSHOT') == false run: | token=$(echo -n "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" | base64) curl -X POST \ From d55d48f96b2b05ee3fc59bd48a5e6c28095695ad Mon Sep 17 00:00:00 2001 From: Ethan Wrasman Date: Thu, 14 Aug 2025 10:18:28 -0500 Subject: [PATCH 2/2] Add Ethan to CODEOWNERS --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4ada148..e57eead 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @mariusvolkhart @mbayerPK +* @mariusvolkhart @mbayerPK @ethan-wrasman-pkware