From 0d6347990abcb0481425dd0d44356becfd9a1a5e Mon Sep 17 00:00:00 2001 From: Vincenzo Pierro Date: Mon, 9 Mar 2026 15:00:23 +0100 Subject: [PATCH 1/2] Fetching tags for git version --- .github/workflows/Publish.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Publish.yaml b/.github/workflows/Publish.yaml index 13acd00..e89a088 100644 --- a/.github/workflows/Publish.yaml +++ b/.github/workflows/Publish.yaml @@ -8,13 +8,16 @@ on: - 'main' jobs: publish: - name: Test + name: Publish + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + ref: 'main' + fetch-tags: true - name: Setup JDK uses: actions/setup-java@v5 From 513dd37e09971aafbd9897a312a513cab97194a9 Mon Sep 17 00:00:00 2001 From: Vincenzo Pierro Date: Mon, 9 Mar 2026 15:00:34 +0100 Subject: [PATCH 2/2] Fetching tags for git version --- .github/workflows/Publish.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/Publish.yaml b/.github/workflows/Publish.yaml index e89a088..697c55f 100644 --- a/.github/workflows/Publish.yaml +++ b/.github/workflows/Publish.yaml @@ -15,7 +15,6 @@ jobs: - name: checkout uses: actions/checkout@v4 with: - fetch-depth: 0 ref: 'main' fetch-tags: true