From 3e0a9b8aa81360079d1e0e5cc6248fffb86e71c7 Mon Sep 17 00:00:00 2001 From: Richard Eckart de Castilho Date: Fri, 20 Dec 2024 18:48:02 +0100 Subject: [PATCH] No issue: Prevent deployment for PRs --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e95f69d0..b3ed4d6b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -53,7 +53,7 @@ jobs: run: mvn --show-version --batch-mode --no-transfer-progress clean verify - name: Upload to Nexus - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request' env: # `NEXUS_USERNAME` and `NEXUS_PASSWORD` are used in `~/.m2/settings.xml` created by `setup-java` action NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}