From ac3e47a14750caea2264315dec3f333c491c074c Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Mon, 14 Apr 2025 19:26:49 +0100 Subject: [PATCH] Fix release workflow to check if directories exist before copying --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15900d9..46b7660 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,10 +28,17 @@ jobs: cp readme.txt build/wp-fix-plugin-does-not-exist-notices/ cp LICENSE build/wp-fix-plugin-does-not-exist-notices/ cp README.md build/wp-fix-plugin-does-not-exist-notices/ - cp -r assets build/wp-fix-plugin-does-not-exist-notices/ cp -r admin build/wp-fix-plugin-does-not-exist-notices/ cp -r includes build/wp-fix-plugin-does-not-exist-notices/ - cp -r languages build/wp-fix-plugin-does-not-exist-notices/ + + # Copy directories if they exist + if [ -d "assets" ]; then + cp -r assets build/wp-fix-plugin-does-not-exist-notices/ + fi + + if [ -d "languages" ]; then + cp -r languages build/wp-fix-plugin-does-not-exist-notices/ + fi - name: Create ZIP file run: |