This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j-transform.git


The following commit(s) were added to refs/heads/main by this push:
     new 9151c03  Fix references to `master` branch
9151c03 is described below

commit 9151c031e37023384ff8568de4ddc5c87b78a7cc
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Sun Apr 30 23:57:50 2023 +0200

    Fix references to `master` branch
---
 .github/workflows/build.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 21477a0..6459af9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -125,7 +125,7 @@ jobs:
           java-package: jdk
           architecture: x64
           cache: maven
-          server-id: ${{ github.ref == 'refs/heads/master' && 
'apache.snapshots.https' || 'apache.releases.https' }}
+          server-id: ${{ github.ref == 'refs/heads/main' && 
'apache.snapshots.https' || 'apache.releases.https' }}
           server-username: NEXUS_USERNAME
           server-password: NEXUS_PASSWORD
           # We won't use `maven-gpg-plugin`, but this is convenient to import 
the GPG secret key
@@ -141,7 +141,7 @@ jobs:
           echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV
 
       - name: Check version (SNAPSHOT)
-        if: github.ref == 'refs/heads/master'
+        if: github.ref == 'refs/heads/main'
         run: |
           [[ "$PROJECT_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+-SNAPSHOT$ ]] || {
             echo "was expecting a snapshot version, found: 
\"$PROJECT_VERSION\"" 1>&2
@@ -179,8 +179,8 @@ jobs:
             -P release
         env:
           # `NEXUS_USERNAME` and `NEXUS_PASSWORD` are used in 
`~/.m2/settings.xml` created by `setup-java` action
-          NEXUS_USERNAME: ${{ github.ref == 'refs/heads/master' && 
secrets.NEXUS_USER || secrets.LOGGING_STAGE_DEPLOYER_USER }}
-          NEXUS_PASSWORD: ${{ github.ref == 'refs/heads/master' && 
secrets.NEXUS_PW || secrets.LOGGING_STAGE_DEPLOYER_PW }}
+          NEXUS_USERNAME: ${{ github.ref == 'refs/heads/main' && 
secrets.NEXUS_USER || secrets.LOGGING_STAGE_DEPLOYER_USER }}
+          NEXUS_PASSWORD: ${{ github.ref == 'refs/heads/main' && 
secrets.NEXUS_PW || secrets.LOGGING_STAGE_DEPLOYER_PW }}
           # `SIGN_KEY` is used by `sign-maven-plugin`
           SIGN_KEY: ${{ secrets.GPG_SECRET_KEY }}
 

Reply via email to