You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2023/05/01 17:58:56 UTC

[logging-log4j-transform] branch release/0.1.0 updated (b0df367 -> 6039912)

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

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


 discard b0df367  Fix release version check
     new 6039912  Fix release version check

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (b0df367)
            \
             N -- N -- N   refs/heads/release/0.1.0 (6039912)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 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/build.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


[logging-log4j-transform] 01/01: Fix release version check

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

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

commit 6039912fc53ba25c3e5c07bbc121376eb29c8a85
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Mon May 1 19:47:53 2023 +0200

    Fix release version check
---
 .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 6459af9..b40637c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -159,15 +159,15 @@ jobs:
             echo "was expecting a release version, found: \"$PROJECT_VERSION\"" 1>&2
             exit 1
           }
-          export CHANGELOG_VERSION=$(grep "^== " CHANGELOG.adoc | head -n 1 | sed -r 's/^== (.+) \(.+\)$/\1/')
+          export CHANGELOG_VERSION=$(grep "^= " CHANGELOG.adoc | head -n 1 | sed -r 's/^= (.+) \(.+\)$/\1/')
           [[ "$PROJECT_VERSION" == "$CHANGELOG_VERSION" ]] || {
             echo "version \"$PROJECT_VERSION\" doesn't match the one in changelog: \"$CHANGELOG_VERSION\"" 1>&2
             exit 1
           }
-          export CURRENT_DATE=$(date +%Y-%m-%d)
-          export CHANGELOG_DATE=$(grep "^== " CHANGELOG.adoc | head -n 1 | sed -r 's/^== .+ \((.+)\)$/\1/')
+          export EXPECTED_DATE=$(date --date="now + 3 days" +%Y-%m-%d)
+          export CHANGELOG_DATE=$(grep "^= " CHANGELOG.adoc | head -n 1 | sed -r 's/^= .+ \((.+)\)$/\1/')
           [[ "$CURRENT_DATE" == "$CHANGELOG_DATE" ]] || {
-            echo "current date \"$CURRENT_DATE\" doesn't match the one in the changelog: \"$CHANGELOG_DATE\"" 1>&2
+            echo "expected release date \"$CURRENT_DATE\" doesn't match the one in the changelog: \"$CHANGELOG_DATE\"" 1>&2
             exit 1
           }