You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pk...@apache.org on 2025/11/05 10:28:27 UTC

(commons-lang) branch feat/reusable-workflow updated (df4d85a96 -> 2245d673b)

This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a change to branch feat/reusable-workflow
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


 discard df4d85a96 feat: use `maven-reusable.yml` workflow
     new 2245d673b feat: use `maven-reusable.yml` workflow

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (df4d85a96)
            \
             N -- N -- N   refs/heads/feat/reusable-workflow (2245d673b)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/maven.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


(commons-lang) 01/01: feat: use `maven-reusable.yml` workflow

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch feat/reusable-workflow
in repository https://gitbox.apache.org/repos/asf/commons-lang.git

commit 2245d673b27315d651b463f07cb2fe890e8c5bc5
Author: Piotr P. Karwasz <pk...@apache.org>
AuthorDate: Wed Nov 5 11:27:14 2025 +0100

    feat: use `maven-reusable.yml` workflow
    
    Replaces the local `maven.yml` workflow with the shared `maven-reusable.yml` from `commons-parent`.
    
    This simplifies maintenance and ensures consistency across Commons projects, eliminating the need to update this workflow unless breaking changes occur.
---
 .github/workflows/maven.yml | 42 +++++++++---------------------------------
 1 file changed, 9 insertions(+), 33 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index aabe25e71..332889291 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -15,40 +15,16 @@
 
 name: Java CI
 
-on: [push, pull_request]
+on:
+  push:
+    # TODO: remove "feat/reusable-workflow" branch before merging.
+    branches: [ "master", "release", "feat/reusable-workflow" ]
+  pull_request: { }
 
-permissions:
-  contents: read
+# Explicitly drop all permissions for security.
+permissions: { }
 
 jobs:
   build:
-
-    runs-on: ${{ matrix.os }}
-    continue-on-error: ${{ matrix.experimental }}
-    strategy:
-      matrix:
-        os: [ubuntu-latest, windows-latest, macos-13]
-        java: [ 8, 11, 17, 21, 25 ]
-        experimental: [false]
-        include:
-          - java: 26-ea
-            experimental: true
-            os: ubuntu-latest
-
-    steps:
-    - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
-      with:
-        persist-credentials: false
-    - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
-      with:
-        path: ~/.m2/repository
-        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
-        restore-keys: |
-          ${{ runner.os }}-maven-
-    - name: Set up JDK ${{ matrix.java }}
-      uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
-      with:
-        distribution: 'temurin'      
-        java-version: ${{ matrix.java }}
-    - name: Build with Maven
-      run: mvn --errors --show-version --batch-mode --no-transfer-progress -Ddoclint=all
+    # Intentionally not pinned: maintained by the same PMC.
+    uses: apache/commons-parent/.github/workflows/maven-reusable.yml@feat/reusable-workflow