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 2025/11/16 21:51:16 UTC
(maven-gh-actions-shared) 01/01: Install subversion on all operating systems
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch install-svn
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git
commit 4d6684387581539a5e5991ca5545bafe8c777173
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Sun Nov 16 22:50:50 2025 +0100
Install subversion on all operating systems
use composite actions to simplify
---
.github/actions/install-svn/action.yml | 36 ++++++++++++++++++++++++++++++++++
.github/workflows/maven-verify.yml | 28 ++++++--------------------
2 files changed, 42 insertions(+), 22 deletions(-)
diff --git a/.github/actions/install-svn/action.yml b/.github/actions/install-svn/action.yml
new file mode 100644
index 0000000..7d71044
--- /dev/null
+++ b/.github/actions/install-svn/action.yml
@@ -0,0 +1,36 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: "Install Subversion"
+
+runs:
+ using: "composite"
+ steps:
+ - name: Install Subversion on Linux
+ if: runner.os == 'Linux'
+ shell: bash
+ run: sudo apt install subversion
+
+ - name: Install Subversion on MacOS
+ if: runner.os == 'MacOS'
+ shell: bash
+ run: brew install subversion
+
+ - name: Install Subversion on Windows
+ if: runner.os == 'Windows'
+ shell: powershell
+ run: choco install --yes subversion
\ No newline at end of file
diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml
index 45bb58c..8540413 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -261,13 +261,9 @@ jobs:
if: inputs.ff-run
steps:
- - name: Install Subversion on Ubuntu
- if: inputs.install-subversion && runner.os == 'Linux'
- run: sudo apt install subversion
-
- - name: Install Subversion on MacOS
- if: inputs.install-subversion && runner.os == 'MacOS'
- run: brew install subversion
+ - name: Install Subversion
+ if: inputs.install-subversion
+ uses: ./.github/actions/install-svn
- name: Show free disk space
run: df -h
@@ -363,21 +359,9 @@ jobs:
run: |
brew install mercurial
- - name: Install Subversion on Ubuntu
- if: >
- inputs.install-subversion &&
- steps.should-run.conclusion == 'success' &&
- runner.os == 'Linux'
- run: |
- sudo apt install subversion
-
- - name: Install Subversion on MacOS
- if: >
- inputs.install-subversion &&
- steps.should-run.conclusion == 'success' &&
- runner.os == 'MacOS'
- run: |
- brew install subversion
+ - name: Install Subversion
+ if: inputs.install-subversion && steps.should-run.conclusion == 'success'
+ uses: ./.github/actions/install-svn
- name: Install GnuPG
if: >