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 2024/06/02 18:59:05 UTC

(maven) 01/01: Allow to manually execute GitHub Action

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

sjaranowski pushed a commit to branch manula-gh
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 2e520a03c392d31751f05cf7e5c61f359acb627a
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Sun Jun 2 20:58:45 2024 +0200

    Allow to manually execute GitHub Action
---
 .github/workflows/maven.yml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 503cebff4c..85642e90fc 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -17,7 +17,7 @@
 
 name: Java CI
 
-on: [push, pull_request]
+on: [push, pull_request, workflow_dispatch]
 
 # clear all permissions for GITHUB_TOKEN
 permissions: {}
@@ -25,8 +25,11 @@ permissions: {}
 jobs:
   build:
 
-    # execute on any push or pull request from forked repo
-    if: github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork )
+    # execute on any push, workflow_dispatch  or pull request from forked repo
+    if: >
+      github.event_name == 'push' ||
+      github.event_name == 'workflow_dispatch' ||
+      ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork )
 
     strategy:
       matrix: