You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2023/09/06 10:25:00 UTC

[logging-parent] branch main updated (6d8e725 -> e3a2a95)

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

vy pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/logging-parent.git


    from 6d8e725  Set Git identity for CI commits
     new ac86920  Fix commit ID passed to `generate-email.sh`
     new e3a2a95  Explicitly specify `shell` in workflows to get `set -eo pipefail`

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/deploy-release-reusable.yml  | 11 ++++++++---
 .github/workflows/deploy-snapshot-reusable.yml |  2 ++
 2 files changed, 10 insertions(+), 3 deletions(-)


[logging-parent] 02/02: Explicitly specify `shell` in workflows to get `set -eo pipefail`

Posted by vy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit e3a2a9589ac39f2c42c42c9a3b6a29f3c1ff8f39
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Wed Sep 6 12:24:15 2023 +0200

    Explicitly specify `shell` in workflows to get `set -eo pipefail`
    
    Fail-fast behavior using `set -eo pipefail` is optional in
    workflows and enabled when `shell: bash` is explicitly specified[1].
    
    [1] https://stackoverflow.com/q/75419587/1278899
---
 .github/workflows/deploy-release-reusable.yml  | 6 ++++++
 .github/workflows/deploy-snapshot-reusable.yml | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/.github/workflows/deploy-release-reusable.yml b/.github/workflows/deploy-release-reusable.yml
index 1052717..9402d66 100644
--- a/.github/workflows/deploy-release-reusable.yml
+++ b/.github/workflows/deploy-release-reusable.yml
@@ -77,6 +77,7 @@ jobs:
           gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
 
       - name: Export version
+        shell: bash
         run: |
           [[ "$GIT_REF" =~ ^refs/heads/release/.+$ ]] || {
             echo "was expecting a \`refs/heads/release/\`-prefixed Git reference, found: \`$GIT_REF\`"
@@ -88,6 +89,7 @@ jobs:
           GIT_REF: ${{ github.ref }}
 
       - name: Set the Maven `revision` property
+        shell: bash
         run: |
           export REVISION=$(./mvnw \
             --non-recursive --quiet --batch-mode \
@@ -110,6 +112,7 @@ jobs:
           fi
 
       - name: Release changelog
+        shell: bash
         run: |
           ./mvnw \
             --non-recursive --batch-mode --errors --no-transfer-progress \
@@ -123,6 +126,7 @@ jobs:
           fi
 
       - name: Upload to Nexus
+        shell: bash
         run: |
           gpg --list-secret-keys
           ./mvnw \
@@ -136,6 +140,7 @@ jobs:
           SIGN_KEY: ${{ secrets.GPG_SECRET_KEY }}
 
       - name: Create the distribution
+        shell: bash
         run: |
 
           # Generate the distribution (i.e., `src.zip` and optional `bin.zip`)
@@ -170,6 +175,7 @@ jobs:
           EOF
 
       - name: Upload to Subversion
+        shell: bash
         run: |
 
           # Checkout the SVN repository
diff --git a/.github/workflows/deploy-snapshot-reusable.yml b/.github/workflows/deploy-snapshot-reusable.yml
index b3557d3..71e5203 100644
--- a/.github/workflows/deploy-snapshot-reusable.yml
+++ b/.github/workflows/deploy-snapshot-reusable.yml
@@ -53,6 +53,7 @@ jobs:
           server-password: NEXUS_PASSWORD
 
       - name: Export version
+        shell: bash
         run: |
           export PROJECT_VERSION=$(./mvnw \
             --quiet --batch-mode -DforceStdout=true \
@@ -62,6 +63,7 @@ jobs:
           echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV
 
       - name: Upload to Nexus
+        shell: bash
         run: |
           gpg --list-secret-keys
           ./mvnw \


[logging-parent] 01/02: Fix commit ID passed to `generate-email.sh`

Posted by vy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ac86920e12a3d6b259b2a39f95dba54420adc396
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Wed Sep 6 12:22:31 2023 +0200

    Fix commit ID passed to `generate-email.sh`
---
 .github/workflows/deploy-release-reusable.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/deploy-release-reusable.yml b/.github/workflows/deploy-release-reusable.yml
index 86e2772..1052717 100644
--- a/.github/workflows/deploy-release-reusable.yml
+++ b/.github/workflows/deploy-release-reusable.yml
@@ -89,7 +89,6 @@ jobs:
 
       - name: Set the Maven `revision` property
         run: |
-          set -x
           export REVISION=$(./mvnw \
             --non-recursive --quiet --batch-mode \
             -DforceStdout=true \
@@ -112,7 +111,6 @@ jobs:
 
       - name: Release changelog
         run: |
-          set -x
           ./mvnw \
             --non-recursive --batch-mode --errors --no-transfer-progress \
             -P changelog-release
@@ -194,8 +192,9 @@ jobs:
           find . -name "${DIST_FILENAME_PREFIX}*" -type f -print0 | xargs -0 -r svn delete
 
           # Generate emails
+          export COMMIT_ID=$(git rev-parse HEAD)
           for EMAIL_TYPE in vote announce; do
-            "$GITHUB_WORKSPACE/.github/generate-email.sh" $EMAIL_TYPE $PROJECT_VERSION $GITHUB_SHA \
+            "$GITHUB_WORKSPACE/.github/generate-email.sh" $EMAIL_TYPE $PROJECT_VERSION $COMMIT_ID \
               > "${DIST_FILENAME_VERSIONED_PREFIX}-email-${EMAIL_TYPE}.txt"
           done