fix path in GH actions

This commit is contained in:
SQFMI 2024-04-03 15:57:14 -04:00 committed by GitHub
parent 2da3fd9ede
commit 5a5b343737
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: