Skip to content

Commit

Permalink
Fix: adding basename to mv command
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdbreemen committed Mar 17, 2024
1 parent 2617630 commit 308ce13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ runs:
run: |
make -j$(nproc)
find build -type f
for file in build/**/*.bin; do mv "$file" "build/${file##*/%.*}-${{steps.semver.outputs.semver}}.bin"; done
for file in build/**/*.elf; do mv "$file" "build/${file##*/%.*}-${{steps.semver.outputs.semver}}.elf"; done
for file in build/**/*.bin; do mv "$file" "build/$(basename ${file%.*})-${{steps.semver.outputs.semver}}.bin"; done
for file in build/**/*.elf; do mv "$file" "build/$(basename ${file%.*})-${{steps.semver.outputs.semver}}.elf"; done
shell: bash
- id: upload
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 308ce13

Please sign in to comment.