From 1a1d37b885159ddb481f39b4169efcc19bcccaf0 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sat, 10 Jan 2026 01:04:49 +0100 Subject: [PATCH] fix: resolve directory overwrite error in checksums generation Use find -mindepth 2 to only move files from subdirectories, avoiding the 'mv: cannot overwrite directory' error when flattening the artifact directory structure. This ensures only the actual binary and checksum files are moved, not the directories themselves. Fixes the sha256sum failure in the Generate Checksums workflow step. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be07044..7a35c3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -185,8 +185,8 @@ jobs: find . -type f -name "soundtouch-cli-*" # Flatten directory structure (artifacts are in subdirs) - # Move all binary files to current directory - find . -type f -name "soundtouch-cli-*" -exec mv {} . \; + # Move all binary and checksum files to current directory + find . -mindepth 2 -type f -name "soundtouch-cli-*" -exec mv {} . \; # Remove empty directories find . -type d -empty -delete