From 5a5b343737794d151cae1321760d10f6c4000319 Mon Sep 17 00:00:00 2001 From: SQFMI Date: Wed, 3 Apr 2024 15:57:14 -0400 Subject: [PATCH] fix path in GH actions --- .github/workflows/main.actions.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.actions.yml b/.github/workflows/main.actions.yml index 57ded1b..7ff9264 100644 --- a/.github/workflows/main.actions.yml +++ b/.github/workflows/main.actions.yml @@ -20,10 +20,17 @@ jobs: set-build-path: true - name: Rename binaries with board revision run: | - for file in *; do - name="${file%%.*}" - ext="${file#$name.}" - mv "$file" "$name"${{ matrix.board-revisions }}."$ext" + parent_dir="path/to/parent/directory" + for dir in "$parent_dir"/*; do + if [ -d "$dir" ]; then + cd "$dir" + for file in *; do + name="${file%%.*}" + ext="${file#$name.}" + mv "$file" "$name-${{ matrix.board-revisions }}.$ext" + done + cd - + fi done - uses: softprops/action-gh-release@v1 with: