You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by hg...@apache.org on 2025/09/01 10:37:43 UTC
(iggy) branch master updated: fix(ci): auto-create directories in copy-latest-from-master.sh (#2142)
This is an automated email from the ASF dual-hosted git repository.
hgruszecki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new 394d4835 fix(ci): auto-create directories in copy-latest-from-master.sh (#2142)
394d4835 is described below
commit 394d48356682fc5b1992798dc50dea9f8f2bed86
Author: Hubert Gruszecki <h....@gmail.com>
AuthorDate: Mon Sep 1 12:37:39 2025 +0200
fix(ci): auto-create directories in copy-latest-from-master.sh (#2142)
Replace directory existence check with automatic creation using
`mkdir -p` to ensure all files are copied even when destination
directories don't exist.
---
.github/workflows/publish.yml | 10 +++++-----
scripts/copy-latest-from-master.sh | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 6d688987..bba4cdde 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -29,6 +29,11 @@ on:
type: boolean
required: false
default: true
+ skip_tag_creation:
+ description: "Skip creating git tags (useful for re-publishing or testing)"
+ type: boolean
+ required: false
+ default: false
commit:
description: "Commit SHA to publish from"
type: string
@@ -48,11 +53,6 @@ on:
type: string
required: false
default: ""
- skip_tag_creation:
- description: "Skip creating git tags (useful for re-publishing or testing)"
- type: boolean
- required: false
- default: false
env:
IGGY_CI_BUILD: true
diff --git a/scripts/copy-latest-from-master.sh b/scripts/copy-latest-from-master.sh
index 51625736..a6c2fa6c 100755
--- a/scripts/copy-latest-from-master.sh
+++ b/scripts/copy-latest-from-master.sh
@@ -110,10 +110,10 @@ case "$COMMAND" in
rel_path="${saved_file#$TMP_SAVED/}"
dest_dir=$(dirname "$rel_path")
- # Check if destination directory exists
+ # Create destination directory if it doesn't exist
if [ "$dest_dir" != "." ] && [ ! -d "$dest_dir" ]; then
- echo " âšī¸ Skipping $rel_path - destination directory '$dest_dir' does not exist"
- continue
+ echo " đ Creating directory: $dest_dir"
+ mkdir -p "$dest_dir"
fi
# Copy the file