From bf504e3bdf582f9241d76f1219c4f79b2a660ce2 Mon Sep 17 00:00:00 2001 From: Chico Sundermann Date: Tue, 30 Jun 2026 12:55:33 +0200 Subject: [PATCH 1/5] Updates Java maven deploy to react to releases and only to releases --- .github/workflows/java.yml | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index ec2a7d5..8cd3377 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -1,10 +1,9 @@ name: Build and Deploy Java Parser on: - push: - branches: [develop, main] - tags: ['v*'] - + release: + types : [published] + jobs: build: runs-on: ubuntu-latest @@ -41,27 +40,12 @@ jobs: - name: Install ANTLR4 run: make dev - - name: Set SNAPSHOT version (develop branch) - if: github.ref == 'refs/heads/develop' - run: | - cd java - BASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//') - mvn versions:set -DnewVersion="${BASE_VERSION}-SNAPSHOT" -DgenerateBackupPoms=false - - - name: Set release version (main branch) - if: github.ref == 'refs/heads/main' + - name: Set release version run: | cd java BASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//') mvn versions:set -DnewVersion="${BASE_VERSION}" -DgenerateBackupPoms=false - - name: Set release version (tag) - if: startsWith(github.ref, 'refs/tags/v') - run: | - cd java - TAG_VERSION=${GITHUB_REF_NAME#v} - mvn versions:set -DnewVersion="${TAG_VERSION}" -DgenerateBackupPoms=false - - name: Generate and Compile Java Code run: make java_parser @@ -72,16 +56,7 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Deploy SNAPSHOT to Sonatype Snapshots - if: github.ref == 'refs/heads/develop' - run: cd java && mvn clean deploy -DskipCentralPublishing=true - env: - MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - - name: Deploy Release to Central Portal - if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') run: cd java && mvn clean deploy env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} From 5280a7c590ca32037ac1693f4a61eeaa84b365d5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Jun 2026 11:13:00 +0000 Subject: [PATCH 2/5] ci: use push trigger for conventional commits check Switch from pull_request to push trigger so that only newly-pushed commits are validated, rather than all commits in the PR history. --- .github/workflows/conventionalpr.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/conventionalpr.yml b/.github/workflows/conventionalpr.yml index 2ef51f7..7f5abd5 100644 --- a/.github/workflows/conventionalpr.yml +++ b/.github/workflows/conventionalpr.yml @@ -1,15 +1,11 @@ name: Conventional Commit Parser on: - pull_request: - branches: [main, master, develop] - types: [opened, reopened, edited, review_requested, synchronize] + push: jobs: conventional_commit: name: Conventional Commits runs-on: ubuntu-latest - permissions: - pull-requests: read steps: - uses: webiny/action-conventional-commits@v1.3.0 with: From 3aeced447c35fe11b7ef02be2eac04ea6a5f560e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Jun 2026 11:16:28 +0000 Subject: [PATCH 3/5] ci: switch to PR title validation for conventional commits check Replace webiny/action-conventional-commits (checks all PR commit messages) with amannn/action-semantic-pull-request (checks PR title), which validates the Conventional Commits format on the squash-merge entry point instead of each individual commit. --- .github/workflows/conventionalpr.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/conventionalpr.yml b/.github/workflows/conventionalpr.yml index 7f5abd5..758bee7 100644 --- a/.github/workflows/conventionalpr.yml +++ b/.github/workflows/conventionalpr.yml @@ -1,12 +1,16 @@ name: Conventional Commit Parser on: - push: + pull_request: + branches: [main, master, develop] + types: [opened, reopened, edited, synchronize] jobs: conventional_commit: name: Conventional Commits runs-on: ubuntu-latest + permissions: + pull-requests: read steps: - - uses: webiny/action-conventional-commits@v1.3.0 - with: + - uses: amannn/action-semantic-pull-request@v6.1.1 + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 5383318117a0383b0a05632329486562b8ad974e Mon Sep 17 00:00:00 2001 From: Chico Sundermann Date: Tue, 30 Jun 2026 13:17:43 +0200 Subject: [PATCH 4/5] chore: follow yaml styling conventions Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/java.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 8cd3377..b3e2506 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -2,7 +2,7 @@ name: Build and Deploy Java Parser on: release: - types : [published] + types: [published] jobs: build: From 03098ea7e2dd09ff8ba72360525f768e099f44aa Mon Sep 17 00:00:00 2001 From: Chico Sundermann Date: Tue, 30 Jun 2026 13:22:50 +0200 Subject: [PATCH 5/5] Chore: updates version to 0.5.1 --- README.md | 2 +- java/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f73ef93..7e09897 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ To use UVL in your projects, you can either: io.github.universal-variability-language uvl-parser - 0.3 + 0.5.1 ``` ### Python Parser diff --git a/java/pom.xml b/java/pom.xml index 88ec875..984d1b3 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -11,7 +11,7 @@ io.github.universal-variability-language uvl-parser - 0.5.0 + 0.5.1