You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2023/12/21 15:17:25 UTC
(commons-net) 02/02: Only trigger on change to my YML file; add summary
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git
commit d0139a9fc3688bf3d6e287e6ff7f3d8deaf03dcc
Author: Sebb <se...@apache.org>
AuthorDate: Thu Dec 21 15:17:16 2023 +0000
Only trigger on change to my YML file; add summary
---
.github/workflows/maven.yml | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index e9889aa2..a2e1fd0e 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -15,7 +15,16 @@
name: Java CI
-on: [push, pull_request, workflow_dispatch]
+on:
+ workflow_dispatch:
+ push:
+ paths-ignore:
+ - '**/workflows/*.yml'
+ - '!**/workflows/maven.yml'
+ pull_request:
+ paths-ignore:
+ - '**/workflows/*.yml'
+ - '!**/workflows/maven.yml'
permissions:
contents: read
@@ -41,7 +50,7 @@ jobs:
- java: 8
os: ubuntu-latest
experimental: false
- deploy: 'deploy' # (use string so it shows up in summary)
+ deploy: true
# include:
# - java: 22-ea
# experimental: true
@@ -75,5 +84,6 @@ jobs:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PW: ${{ secrets.NEXUS_PW }}
run: >
+ echo "Deploy SNAPSHOT" >> $GITHUB_STEP_SUMMARY
mvn --show-version --batch-mode --no-transfer-progress deploy -Dgpg.skip
-DskipTests -Drat.skip -Djacoco.skip -Dcyclonedx.skip -Dspotbugs.skip -Dspdx.skip -Dpmd.skip