From 4b6d38d9139247b9ffb6ec188c13ea360b805eed Mon Sep 17 00:00:00 2001 From: Sunrisepeak Date: Sun, 22 Nov 2026 03:44:15 +0900 Subject: [PATCH] release: the promote step tests each platform's archive by name; ls of both names failed under pipefail for the absent one --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19c17d588..3dc59f857 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -158,8 +158,10 @@ jobs: mkdir dist for dir in promoted/release-*/; do cp "$dir"* dist/; done cd dist + # One archive per platform, `.tar.gz` or `.zip`: each name is tested, since `ls` of + # both fails for the one that is absent and pipefail ended the step (v2026.11.21.1). for platform in linux-x86_64 linux-aarch64 macosx-arm64 windows-x86_64; do - ls "mcpp-$VERSION-$platform".tar.gz "mcpp-$VERSION-$platform".zip 2>/dev/null | grep -q . || { + [ -f "mcpp-$VERSION-$platform.tar.gz" ] || [ -f "mcpp-$VERSION-$platform.zip" ] || { echo "::error::run $RUN holds no archive of $VERSION for $platform"; ls -la; exit 1; } done for sum in *.sha256; do sha256sum -c "$sum"; done