From f64bc4d6da509614c3823f84e67796d5d05770d4 Mon Sep 17 00:00:00 2001 From: maxisoft Date: Sat, 27 Jul 2024 21:38:46 +0200 Subject: [PATCH] fix: avoid root tmp directory in archive and improve step naming - Changed to tmp directory before creating the archive to avoid including the root tmp directory - Updated 7z command to use lzma2 compression with specified options - Improved step naming for better clarity in the workflow --- .github/workflows/doit.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doit.yml b/.github/workflows/doit.yml index b74baa7..ddcf36b 100644 --- a/.github/workflows/doit.yml +++ b/.github/workflows/doit.yml @@ -87,7 +87,9 @@ jobs: mkdir -p tmp 7z x kernels.zip -otmp echo "- kernels.7z creation" > $GITHUB_STEP_SUMMARY - 7z a -t7z -mx=9 -p"${{ secrets.ARCHIVE_PASSWORD }}" kernels.7z tmp/* + pushd tmp + 7z a -t7z -m0=lzma2 -mx=6 -mhe=on -ms=on -p"${{ secrets.ARCHIVE_PASSWORD }}" kernels.7z * + popd echo "archive_created=true" >> $GITHUB_ENV echo "- kernels.7z has been created" > $GITHUB_STEP_SUMMARY rm -rf tmp || : @@ -101,7 +103,8 @@ jobs: if-no-files-found: error retention-days: 90 - - if: ${{ github.actor == github.repository_owner }} + - name: Prepare remote git push + if: ${{ github.actor == github.repository_owner }} run: | if [ -z "${{ secrets.SSH_DEPLOY_KEY }}" ]; then echo "- SSH_DEPLOY_KEY secret is not set" >> $GITHUB_STEP_SUMMARY