This is an automated email from the ASF dual-hosted git repository. cstamas pushed a commit to branch v2 in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git
The following commit(s) were added to refs/heads/v2 by this push: new eec415d Add more FF flags (#46) eec415d is described below commit eec415d282c1767775dabfe6a45ed1d00000887f Author: Tamas Cservenak <ta...@cservenak.net> AuthorDate: Sun Jun 19 23:14:11 2022 +0200 Add more FF flags (#46) Add more flags: * to control is FF step needed at all * to control is FF required to build site at all --- .github/workflows/maven-verify.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index bed4846..88f05dd 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: inputs.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: inputs.ff-site-run - name: Upload Maven Site uses: actions/upload-artifact@v3 @@ -199,7 +212,8 @@ jobs: name: ${{ matrix.os }} jdk-${{ matrix.jdk }}-${{ matrix.distribution }} timeout-minutes: ${{ inputs.timeout-minutes }} runs-on: ${{ matrix.os }} - + if: always() && ( !inputs.ff-run || needs.fail-fast-build.result == 'success' ) + strategy: fail-fast: ${{ inputs.verify-fail-fast }} matrix: