This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch release/1.10.0
in repository https://gitbox.apache.org/repos/asf/logging-parent.git
The following commit(s) were added to refs/heads/release/1.10.0 by this push:
new a3925c0 Fix YAML escaping issue, 3rd time
a3925c0 is described below
commit a3925c0f1e2181d7db4d5d4a84a46f7b39311b6f
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Mon Sep 4 12:33:32 2023 +0200
Fix YAML escaping issue, 3rd time
---
.github/workflows/deploy-release-reusable.yml | 3 ++-
pom.xml | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/deploy-release-reusable.yml
b/.github/workflows/deploy-release-reusable.yml
index eca16b0..eca60d7 100644
--- a/.github/workflows/deploy-release-reusable.yml
+++ b/.github/workflows/deploy-release-reusable.yml
@@ -31,7 +31,8 @@ on:
# `distribution-*` input defaults should match the ones in `pom.xml`!
distribution-attachment-filepath-pattern:
description: The regex pattern matched against the full filepath for
determining attachments to be included in the distribution
- default: ^.*/target/log4j-(.+)-${{ '$'
}}{project.version}(-tests)?\\.jar${{ '$' }}
+ # Below `\$` are placed to avoid `bad substitution` failures in CI
+ default: ^.*/target/log4j-(.+)-\${project.version}(-tests)?\\.jar\$
type: string
distribution-attachment-count:
description: The number of attachments expected to be found
diff --git a/pom.xml b/pom.xml
index f9bbbca..776c3c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -640,13 +640,15 @@
pathByFile.put("LICENSE.txt", new
File("LICENSE.txt").toPath());
// Find attachments that will go into the distribution
+ String attachmentFilepathPattern =
"${attachmentFilepathPattern}";
+ System.out.format("Locating attachments matching the provided
pattern: `%s`%n", new Object[] {attachmentFilepathPattern});
SortedMap attachmentPathByFile = new TreeMap();
Stream paths = Files.walk(new
File(repoDirectoryParent).toPath(), 8, /* required for BSH method resolution:
*/ new FileVisitOption[0]);
try {
paths.forEach(new Consumer() {
public void accept(Path path) {
if (Files.isRegularFile(path, /* required for BSH
method resolution: */ new LinkOption[0]) &&
-
path.toAbsolutePath().toString().matches("${attachmentFilepathPattern}")) {
+
path.toAbsolutePath().toString().matches(attachmentFilepathPattern)) {
attachmentPathByFile.put(path.toFileName().toString(), path);
}
}