From ac10b1d8835c3631a08f56cc8f1c38de7a00bbc8 Mon Sep 17 00:00:00 2001 From: Robert van den Breemen Date: Mon, 18 Mar 2024 00:26:00 +0100 Subject: [PATCH] Fix: Trying to get a clean filesystem rename --- .github/actions/build/action.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 017a722..b6da378 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -10,11 +10,6 @@ runs: - id: create-build-dir run: mkdir -p build shell: bash - - id: filesys - run: | - make filesystem - for file in build/*.littlefs.bin; do mv "$file" "build/$(basename ${file%.*}).${{steps.semver.outputs.semver}}.littlefs.bin"; done - shell: bash - id: build run: | make -j$(nproc) @@ -22,6 +17,12 @@ runs: 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: filesys + run: | + make filesystem + for file in build/*.littlefs.bin; do mv "$file" "build/$(basename -s .littlefs.bin $file).${{steps.semver.outputs.semver}}.littlefs.bin"; done + shell: bash + - id: upload uses: actions/upload-artifact@v4 with: