You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2022/05/25 01:50:19 UTC
[maven-gh-actions-shared] branch v2 updated: [SCM-988] Make installing mercurial optional (#45)
This is an automated email from the ASF dual-hosted git repository.
olamy 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 f80c813 [SCM-988] Make installing mercurial optional (#45)
f80c813 is described below
commit f80c813e22aab83f9d9922db128cece13db7f64a
Author: Niels Basjes <gi...@basjes.nl>
AuthorDate: Wed May 25 03:50:15 2022 +0200
[SCM-988] Make installing mercurial optional (#45)
---
.github/workflows/maven-verify.yml | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml
index d8011ec..bed4846 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -128,6 +128,12 @@ on:
required: false
type: string
+ install-mercurial:
+ description: Ensure all build images have Mercurial(hg) installed
+ required: false
+ default: false
+ type: boolean
+
# allow single build per branch or PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -218,8 +224,11 @@ jobs:
# Git and Subversion are installed on all by default.
# Mercurial is not installed on macOS.
# https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners#installing-software-on-macos-runners
- - name: Ensure all needed tools are installed (macOS)
- if: steps.should-run.conclusion == 'success' && matrix.os == 'macOS-latest'
+ - name: Install Mercurial (hg) on macOS
+ if: >
+ inputs.install-mercurial &&
+ steps.should-run.conclusion == 'success' &&
+ matrix.os == 'macOS-latest'
run: |
brew install mercurial