From 577a41cae7b000770982e229fe9145646fd9323b Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Thu, 7 Mar 2024 12:20:16 -0700 Subject: [PATCH] Release workflow: create source archive in the presence of hengband-en.spec --- .github/workflows/release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 68dea9eb1..253cfc587 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -163,7 +163,10 @@ jobs: ./bootstrap ./configure --disable-japanese --disable-net make distdir - mv "${{ steps.store_config.outputs.name }}"-* "$out" + n_name=`find . -maxdepth 1 -type d -name "${{ steps.store.config.outputs.name }}"'-*' -print | wc -l` + name=`find . -maxdepth 1 -type d -name "${{ steps.store.config.outputs.name }}"'-*' -print` + test x"$n_name" != x1 || exit 1 + test x"$name" == x"$out" || mv "$name" "$out" tar -cBf - "$out" | gzip -c - >"$out".tar.gz - name: Create Artifact with Source Archive Path -- 2.11.0