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/04 14:54:44 UTC
[logging-parent] branch main updated: Fix SVN handling in CI
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
The following commit(s) were added to refs/heads/main by this push:
new fd42a96 Fix SVN handling in CI
fd42a96 is described below
commit fd42a9694eaa5929acf1e7960c19dee6305ccf40
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Sep 4 16:54:50 2023 +0200
Fix SVN handling in CI
---
.github/workflows/deploy-release-reusable.yml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/deploy-release-reusable.yml b/.github/workflows/deploy-release-reusable.yml
index d54a785..18c3d01 100644
--- a/.github/workflows/deploy-release-reusable.yml
+++ b/.github/workflows/deploy-release-reusable.yml
@@ -130,7 +130,11 @@ jobs:
# Switch to the project folder
cd "$SVN_DIR"
- mkdir -p "${{ inputs.project-name }}" && cd $_
+ if [ \! -e "${{ inputs.project-name }}" ]; then
+ mkdir -p "${{ inputs.project-name }}"
+ svn add "${{ inputs.project-name }}"
+ fi
+ cd "${{ inputs.project-name }}"
# Clean up old files
find . -name "${DIST_FILENAME_PREFIX}*" -type f -print0 | xargs -0 -r svn delete
@@ -145,7 +149,7 @@ jobs:
cp "$DIST_FILEPATH"* .
# Add & commit changes
- svn add .
+ svn add "${DIST_FILENAME_PREFIX}"*
svn commit \
--username "$SVN_USERNAME" \
--password "$SVN_PASSWORD" \