Skip to content

Commit db4d82e

Browse files
authored
release: the promote step tests each platform's archive by name (#997)
The promote step of release.yml listed mcpp-<v>-<platform>.tar.gz and .zip with one ls piped to grep -q; under set -euo pipefail the ls of the absent name failed the pipeline, so every platform was reported as holding no archive (v2026.11.21.1, run 44936964201). Each name is now tested with [ -f ].
1 parent 6b90f4d commit db4d82e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,10 @@ jobs:
158158
mkdir dist
159159
for dir in promoted/release-*/; do cp "$dir"* dist/; done
160160
cd dist
161+
# One archive per platform, `.tar.gz` or `.zip`: each name is tested, since `ls` of
162+
# both fails for the one that is absent and pipefail ended the step (v2026.11.21.1).
161163
for platform in linux-x86_64 linux-aarch64 macosx-arm64 windows-x86_64; do
162-
ls "mcpp-$VERSION-$platform".tar.gz "mcpp-$VERSION-$platform".zip 2>/dev/null | grep -q . || {
164+
[ -f "mcpp-$VERSION-$platform.tar.gz" ] || [ -f "mcpp-$VERSION-$platform.zip" ] || {
163165
echo "::error::run $RUN holds no archive of $VERSION for $platform"; ls -la; exit 1; }
164166
done
165167
for sum in *.sha256; do sha256sum -c "$sum"; done

0 commit comments

Comments
 (0)