You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2026/10/17 06:59:12 UTC

(maven-surefire) branch master updated: Use workflow_run for PR check (#3531)

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

slawekjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e4f6b98e Use workflow_run for PR check (#3531)
1e4f6b98e is described below

commit 1e4f6b98e4076e120455e37b1049688354f49a11
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Sat Oct 17 08:59:06 2026 +0200

    Use workflow_run for PR check (#3531)
    
    * Use workflow_run for PR check
    
    PR check runs on workflow_run after the new PR Signal workflow
    instead of pull_request_target.
    
    Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
    
    * Restore synchronize in PR Signal
    
    PR check reports a commit status on the PR head, so it has to run
    again for every new head commit.
    
    Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
    
    * Rename the PR check workflow to PR Check
    
    Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <no...@anthropic.com>
---
 .github/workflows/pr-check.yml                    |  7 ++++---
 .github/workflows/{pr-check.yml => pr-signal.yml} | 17 ++++++++++++-----
 2 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml
index 01cdbe016..5a958ebe8 100644
--- a/.github/workflows/pr-check.yml
+++ b/.github/workflows/pr-check.yml
@@ -15,11 +15,12 @@
 # specific language governing permissions and limitations
 # under the License.
 
-name: PR check
+name: PR Check
 
 on:
-  pull_request_target:
-    types: [opened, edited, reopened, synchronize]
+  workflow_run:
+    workflows: [PR Signal]
+    types: [completed]
 
 jobs:
   pr-check:
diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-signal.yml
similarity index 72%
copy from .github/workflows/pr-check.yml
copy to .github/workflows/pr-signal.yml
index 01cdbe016..b90763f7e 100644
--- a/.github/workflows/pr-check.yml
+++ b/.github/workflows/pr-signal.yml
@@ -15,12 +15,19 @@
 # specific language governing permissions and limitations
 # under the License.
 
-name: PR check
+# signal events on PR, will be used by other workflows to trigger actions on PR
+# by the workflow_run
+
+name: PR Signal
 
 on:
-  pull_request_target:
-    types: [opened, edited, reopened, synchronize]
+  pull_request:
+    types:
+      - edited
+      - opened
+      - reopened
+      - synchronize
 
 jobs:
-  pr-check:
-    uses: apache/maven-gh-actions-shared/.github/workflows/pr-check.yml@v5
+  pr-signal:
+    uses: apache/maven-gh-actions-shared/.github/workflows/pr-signal.yml@v5