From bde6797943abcb105f47dad295457285577aee51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20David--Cl=C3=A9ris?= Date: Sat, 8 Aug 2026 15:16:27 +0200 Subject: [PATCH 1/5] ensure that the archive is already compressed --- action.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 305df8f..492eb5d 100644 --- a/action.yml +++ b/action.yml @@ -35,18 +35,17 @@ runs: - name: Archive repository with submodules shell: bash - run: ./git-archive-all.sh + run: ./git-archive-all.sh --format=tar.gz --prefix archive - - name: Compress archive + - name: Rename archive shell: bash run: | - archive="$(basename "$(git rev-parse --show-toplevel)").tar" + archive="archive.tar.gz" if [[ ! -f "$archive" ]]; then echo "Expected archive not found: $archive" exit 1 fi - gzip -c "$archive" > /tmp/${{ inputs.output_name }} - mv /tmp/${{ inputs.output_name }} . + mv "$archive" ${{ inputs.output_name }} - name: Upload artifact uses: actions/upload-artifact@v7 From ab1c8ea631a9a49201904d01120a9fb9d5f5eb33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20David--Cl=C3=A9ris?= Date: Sat, 8 Aug 2026 15:17:47 +0200 Subject: [PATCH 2/5] fix --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 492eb5d..f2fd4d0 100644 --- a/action.yml +++ b/action.yml @@ -35,7 +35,7 @@ runs: - name: Archive repository with submodules shell: bash - run: ./git-archive-all.sh --format=tar.gz --prefix archive + run: ./git-archive-all.sh --format tar.gz --prefix archive - name: Rename archive shell: bash From a70d337e2c80a98dd3f5bbbb0dc606ee18cb04f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20David--Cl=C3=A9ris?= Date: Sat, 8 Aug 2026 15:18:33 +0200 Subject: [PATCH 3/5] fix --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index f2fd4d0..22d051c 100644 --- a/action.yml +++ b/action.yml @@ -43,6 +43,8 @@ runs: archive="archive.tar.gz" if [[ ! -f "$archive" ]]; then echo "Expected archive not found: $archive" + echo "Contents of current directory:" + ls -la . exit 1 fi mv "$archive" ${{ inputs.output_name }} From 39eec4f05c2d24f69d8057db7bf466fe7eb4a58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20David--Cl=C3=A9ris?= Date: Sat, 8 Aug 2026 15:19:34 +0200 Subject: [PATCH 4/5] fix --- action.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 22d051c..aa2f7d8 100644 --- a/action.yml +++ b/action.yml @@ -35,16 +35,14 @@ runs: - name: Archive repository with submodules shell: bash - run: ./git-archive-all.sh --format tar.gz --prefix archive + run: ./git-archive-all.sh --format tar.gz - name: Rename archive shell: bash run: | - archive="archive.tar.gz" + archive="$(basename "$(git rev-parse --show-toplevel)").tar" if [[ ! -f "$archive" ]]; then echo "Expected archive not found: $archive" - echo "Contents of current directory:" - ls -la . exit 1 fi mv "$archive" ${{ inputs.output_name }} From 85f4d141e15f29d3f03fd43dd4e936f7b5de23e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20David--Cl=C3=A9ris?= Date: Sat, 8 Aug 2026 15:20:11 +0200 Subject: [PATCH 5/5] fix --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index aa2f7d8..4f05871 100644 --- a/action.yml +++ b/action.yml @@ -40,7 +40,7 @@ runs: - name: Rename archive shell: bash run: | - archive="$(basename "$(git rev-parse --show-toplevel)").tar" + archive="$(basename "$(git rev-parse --show-toplevel)").tar.gz" if [[ ! -f "$archive" ]]; then echo "Expected archive not found: $archive" exit 1