From 002b7ced0df4c8a9f2c15521d4c9c02c1c28ac5c Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 11 Mar 2023 18:59:34 +0100 Subject: [PATCH] refactor: use mv instead of cp to move the image from the workspace to the root --- .github/workflows/BuildImages.yml | 2 +- .github/workflows/Release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/BuildImages.yml b/.github/workflows/BuildImages.yml index c2fe4853a..2739d3eb6 100644 --- a/.github/workflows/BuildImages.yml +++ b/.github/workflows/BuildImages.yml @@ -63,7 +63,7 @@ jobs: NOW="$(date +"%Y-%m-%d")" IMAGE="${NOW}-${DIST_NAME}-${DIST_VERSION}-${{ steps.build.outputs.type }}-${{ steps.build.outputs.sbc }}" - cp repository/src/workspace/*.img $IMAGE.img + mv repository/src/workspace/*.img $IMAGE.img echo "image=${IMAGE}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 948c4ad14..02ed76adb 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -141,7 +141,7 @@ jobs: source repository/src/config base_name="${{ needs.release.outputs.date }}-${DIST_NAME}-${DIST_VERSION}" image="${base_name}-${{ steps.build.outputs.type }}-${{ steps.build.outputs.sbc }}" - cp repository/src/workspace/*.img $image.img + mv repository/src/workspace/*.img $image.img echo "base_name=${base_name}" >> $GITHUB_OUTPUT echo "image=${image}" >> $GITHUB_OUTPUT