You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2022/06/03 10:14:40 UTC

[maven-gh-actions-shared] 01/01: Add more FF flags

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

cstamas pushed a commit to branch ff-flags
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git

commit f83d324b18034f798e2f3f27f01d227f3344abf1
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Fri Jun 3 12:14:25 2022 +0200

    Add more FF flags
---
 .github/workflows/maven-verify.yml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml
index bed4846..eb726d8 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -69,6 +69,12 @@ on:
         type: string
 
       # fail fast job setup
+      ff-run:
+        description: Determines should fail-fast-build run at all
+        required: false
+        default: true
+        type: boolean
+
       ff-os:
         description: The os used during fail-fast-build job
         required: false
@@ -93,6 +99,12 @@ on:
         default: '-P run-its verify'
         type: string
 
+      ff-site-run:
+        description: Determines should fail-fast-build run site step
+        required: false
+        default: true
+        type: boolean
+
       ff-site-goal:
         description: The Maven goal used by fail-fast-build job to build site
         required: false
@@ -147,7 +159,7 @@ jobs:
     runs-on: ${{ inputs.ff-os }}
     timeout-minutes: ${{ inputs.ff-timeout-minutes }}
     # 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 )
+    if: ff-run && ( github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork ) )
 
     steps:
       - name: Show free disk space
@@ -174,6 +186,7 @@ jobs:
 
       - name: Build Maven Site
         run: ./mvnw --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-site-goal }}
+        if: ff-site-run
 
       - name: Upload Maven Site
         uses: actions/upload-artifact@v3