You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2022/12/16 10:19:30 UTC

[jena] 01/01: Allow triggering GitHub Actions via label

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

rvesse pushed a commit to branch run-actions-when-labelled
in repository https://gitbox.apache.org/repos/asf/jena.git

commit 57b8cca2233c5b352509f13fbc2c181c698af6f8
Author: Rob Vesse <ro...@telicent.io>
AuthorDate: Fri Dec 16 10:17:29 2022 +0000

    Allow triggering GitHub Actions via label
    
    This allows for the GitHub Actions to be triggered for a PR by adding a
    run-actions label to that PR.  This then allows project members and/or
    contributors to have their PRs explicitly tested prior to us merging
    them.
---
 .github/workflows/maven.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index dc464325a5..d8588bbb32 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -2,7 +2,10 @@
 
 name: Apache Jena CI
 # Manual
-on: workflow_dispatch
+on: 
+  workflow_dispatch:
+  pull_request:
+    types: [ labeled ]
 
 #  push:
 #    branches: [ main ]
@@ -17,6 +20,8 @@ jobs:
 
     runs-on: ${{ matrix.os }}
 
+    if: ${{ (github.event.action == 'labeled' && github.event.label.name == 'run-action') || github.event.action != 'labeled' }}
+
     strategy:
       fail-fast: false
       matrix: