From a55b7e62a0963e34d6b75ee920b978a5f63c01b8 Mon Sep 17 00:00:00 2001 From: Marcel Seidel Date: Wed, 1 Oct 2025 12:01:27 +0200 Subject: [PATCH 1/3] chore: Switching from master branch to main branch --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 410d7eb..c9bb1d3 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ scm:git:git://github.com/Staffbase/plugins-sdk-java.git scm:git:ssh://github.com/Staffbase/plugins-sdk-java.git - http://github.com/Staffbase/plugins-sdk-java/tree/master + http://github.com/Staffbase/plugins-sdk-java/tree/main From 29e224db89b8250a3a3735b9c6cabaf0939e0b26 Mon Sep 17 00:00:00 2001 From: Marcel Seidel Date: Wed, 1 Oct 2025 13:28:13 +0200 Subject: [PATCH 2/3] chore: Set default revision value to avoid build errors --- .github/workflows/ci.yml | 2 +- pom.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9479312..c12ab5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: java-version: ${{ matrix.java }} - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn -B package --file pom.xml -Drevision=${{ github.event.release.tag_name }} - name: Run UI tests run: make test diff --git a/pom.xml b/pom.xml index c9bb1d3..4122698 100644 --- a/pom.xml +++ b/pom.xml @@ -70,6 +70,7 @@ + 1.2.9 UTF-8 1.8 From ade311bf6d88ff0915783ddb68137092e32a395f Mon Sep 17 00:00:00 2001 From: Marcel Seidel Date: Wed, 1 Oct 2025 13:37:51 +0200 Subject: [PATCH 3/3] chore: Fetch latest Tag in CI step --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c12ab5c..67bec90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,14 @@ jobs: with: java-version: ${{ matrix.java }} + - name: Get latest release tag + id: latest_release + run: | + tag=$(curl -s https://api.github.com/repos/Staffbase/plugins-sdk-java/releases/latest | jq -r .tag_name) + echo "tag_name=$tag" >> $GITHUB_OUTPUT + - name: Build with Maven - run: mvn -B package --file pom.xml -Drevision=${{ github.event.release.tag_name }} + run: mvn -B package --file pom.xml -Drevision=${{ steps.latest_release.outputs.tag_name }} - name: Run UI tests run: make test