From 381cd63686f60d03c6537ddb82853d622e6137cb Mon Sep 17 00:00:00 2001 From: Laurent Redor Date: Fri, 17 Apr 2026 09:33:37 +0200 Subject: [PATCH] Modernize GitHub Actions CI workflow Update the GitHub Actions workflow to better match current platform expectations. This change: - adds pull_request triggering so CI also runs on PRs - replaces the deprecated set-output syntax with GITHUB_OUTPUT - upgrades actions/checkout and actions/setup-java to v4 (as requested by github) --- .github/workflows/maven.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3596bc01..455b3c66 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -4,6 +4,9 @@ on: push: paths-ignore: - 'docs/**' + pull_request: + paths-ignore: + - 'docs/**' jobs: build: @@ -25,10 +28,11 @@ jobs: - name: Get the tag version 🏷️ id: get_version - run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//} + if: ${{ startsWith(github.ref, 'refs/tags/') }} + run: echo "TAG_VERSION=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT" - name: Deploy Nighlty RCP 🚀 - if: ${{ (github.ref == 'refs/heads/master') }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages @@ -37,7 +41,7 @@ jobs: single-commit: true - name: Deploy Nighlty Web 🚀 - if: ${{ (github.ref == 'refs/heads/master') }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages @@ -46,7 +50,7 @@ jobs: single-commit: true - name: P2 Deploy Release RCP 🚀🏷️ - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} uses: JamesIves/github-pages-deploy-action@4.1.4 with: branch: gh-pages @@ -56,7 +60,7 @@ jobs: clean: true # Remove deprecated files - name: P2 Deploy Release Web 🚀🏷️ - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} uses: JamesIves/github-pages-deploy-action@4.1.4 with: branch: gh-pages @@ -66,21 +70,21 @@ jobs: clean: true # Remove deprecated files - name: Release Admin RCP Products 🖱️ - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} uses: svenstaro/upload-release-action@v2 with: overwrite: true tag: ${{ github.ref }} repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ui.rcp/releng/org.activitymgr.ui.rcp.repository/target/products/activitymgr-rcp-*.* + file: ui.rcp/releng/org.activitymgr.ui.rcp.repository/target/products/activitymgr-rcp-*.* file_glob: true - name: Release Web Products 🖱️ - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} uses: svenstaro/upload-release-action@v2 with: overwrite: true tag: ${{ github.ref }} repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ui.web/releng/org.activitymgr.ui.web.repository/target/products/activitymgr-web-server-*.* + file: ui.web/releng/org.activitymgr.ui.web.repository/target/products/activitymgr-web-server-*.* file_glob: true