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 18:28:48 UTC

[logging-parent] branch main updated: Fix SVN upload script

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 3ea54df  Fix SVN upload script
3ea54df is described below

commit 3ea54dfadeb1ddf92111d6f2bba9baa32381f618
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Sep 4 20:28:13 2023 +0200

    Fix SVN upload script
---
 .github/workflows/deploy-release-reusable.yml | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/deploy-release-reusable.yml b/.github/workflows/deploy-release-reusable.yml
index b586e06..df6acaf 100644
--- a/.github/workflows/deploy-release-reusable.yml
+++ b/.github/workflows/deploy-release-reusable.yml
@@ -121,8 +121,6 @@ jobs:
       - name: Upload to Subversion
         run: |
 
-          set -x
-
           # Checkout the SVN repository
           export SVN_DIR="/tmp/svn-repo"
           svn co \
@@ -132,14 +130,14 @@ jobs:
 
           # Switch to the project folder
           cd "$SVN_DIR"
-          if [ \! -e "${{ inputs.project-name }}" ]; then
-            mkdir -p "${{ inputs.project-name }}"
-            svn add "${{ inputs.project-name }}"
+          if [ \! -e "$PROJECT_NAME" ]; then
+            mkdir -p "$PROJECT_NAME"
+            svn add "$PROJECT_NAME"
           fi
-          cd "${{ inputs.project-name }}"
+          cd "$PROJECT_NAME"
 
           # Clean up old files
-          find . -name "${DIST_FILENAME_PREFIX}*" -type f -print0 | xargs -0 -r svn delete
+          find . -name "$DIST_FILENAME_PREFIX"* -type f -print0 | xargs -0 -r svn delete
 
           # Generate emails
           for EMAIL_TYPE in vote announce; do
@@ -151,12 +149,13 @@ jobs:
           cp "$DIST_FILEPATH"* .
 
           # Add & commit changes
-          svn add "${DIST_FILENAME_PREFIX}"*
+          svn add "$DIST_FILENAME_PREFIX"*
           svn commit \
             --username "$SVN_USERNAME" \
             --password "$SVN_PASSWORD" \
             -m "Added \`${DIST_FILENAME_PREFIX}\` artifacts for release \`${PROJECT_VERSION}\`"
 
         env:
+          PROJECT_NAME: ${{ inputs.project-name }}
           SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
           SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}