From edc205903a9b0fb485cd24a599e73128ffbe37a2 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Wed, 17 Apr 2024 13:06:57 +0100 Subject: [PATCH] Check that the generated release tarball filename matches what we expect --- .github/workflows/gen_orig.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/gen_orig.yml b/.github/workflows/gen_orig.yml index bd5ff18..0a9ba52 100644 --- a/.github/workflows/gen_orig.yml +++ b/.github/workflows/gen_orig.yml @@ -26,6 +26,14 @@ jobs: run: | meson setup build meson dist --no-tests --include-subprojects -C build + - name: Check for output tarball + run: | + TARBALL="libpisp-$(echo "$GITHUB_REF_NAME" | sed 's/^v//').tar.xz" + if ! [ -f "build/meson-dist/$TARBALL" ]; then + echo "Expected tarball not found - $TARBALL" + echo "Does 'version' in meson.build match the tag?" + exit 1 + fi - name: Release tarball uses: softprops/action-gh-release@v1 with: