file copy fix
Some checks failed
Build RootFS Archives and Push Docker Images / build-rootfs-archives (bookworm) (push) Failing after 2m34s
Build RootFS Archives and Push Docker Images / build-rootfs-archives (bullseye) (push) Failing after 2m21s
Build RootFS Archives and Push Docker Images / build-rootfs-archives (buster) (push) Failing after 2m21s
Build RootFS Archives and Push Docker Images / build-rootfs-archives (docker-build) (push) Failing after 3m33s
Build RootFS Archives and Push Docker Images / build-and-push-docker-images (push) Has been skipped

This commit is contained in:
2025-07-05 07:51:01 -07:00
parent 5f17575b6e
commit 54a492d06d

View File

@@ -50,10 +50,21 @@ jobs:
mkdir -p upload-repo/${{ matrix.version }}
find upload-repo/${{ matrix.version }} -name '*.tar.bz2' -type f -delete
found=$(find "$GITHUB_WORKSPACE" -maxdepth 1 -name '*.tar.bz2')
# Find all tarballs recursively in the workspace
found=$(find . -name '*.tar.bz2')
if [ -n "$found" ]; then
cp $found upload-repo/${{ matrix.version }}/
...
# For each tarball found, get the version folder (parent dir) and copy to matching upload-repo folder
for filepath in $found; do
version_dir=$(dirname "$filepath")
mkdir -p upload-repo/"$version_dir"
cp "$filepath" upload-repo/"$version_dir"/
done
cd upload-repo
git add **/*.tar.bz2
git commit -m "Update base images on $(date -u +'%Y-%m-%dT%H:%M:%SZ')"
git push
else
echo "[WARNING] No .tar.bz2 archive found in workspace!"
exit 1