From eb329126370a9392f2849108f1571aca65ba9a6a Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Thu, 29 Feb 2024 12:51:23 +0800 Subject: [PATCH] github: Update file search depth in release workflow - Modify find command to limit search to top-level of build directory - Ensure only root-level .pdf, .zip, and .bin files are copied Signed-off-by: Huang Rui --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54fcd23..f81d82d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,9 +45,9 @@ jobs: pushd ${{github.workspace}}/$DIR cmake -B ./build -G Ninja cmake --build ./build - find ./build -name \*.pdf -exec cp {} ${{github.workspace}}/ \; - find ./build -name \*.zip -exec cp {} ${{github.workspace}}/ \; - find ./build -name \*.bin -exec cp {} ${{github.workspace}}/ \; + find ./build -maxdepth 1 -name "*.pdf" -exec cp {} ${{github.workspace}}/ \; + find ./build -maxdepth 1 -name "*.zip" -exec cp {} ${{github.workspace}}/ \; + find ./build -maxdepth 1 -name "*.bin" -exec cp {} ${{github.workspace}}/ \; popd done - name: Create Release