From a5ea69a0784859f96ff36f34e622b57995fcd63c Mon Sep 17 00:00:00 2001 From: Reidar Johansen Date: Fri, 22 Mar 2024 13:57:49 +0100 Subject: [PATCH] Fix build loop --- .github/workflows/build-manual.yaml | 6 ++++++ build.sh | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-manual.yaml b/.github/workflows/build-manual.yaml index 5eb1faf0..fcf29e5d 100644 --- a/.github/workflows/build-manual.yaml +++ b/.github/workflows/build-manual.yaml @@ -60,6 +60,12 @@ jobs: if: ${{ matrix.stack != 'static' }} run: make extra + - name: Create freeze file on fail + if: failure() + run: | + export PANDOC_VERSION=3.1.12 + make alpine-freeze-file + - name: Publish freeze file on fail if: failure() uses: actions/upload-artifact@ef09cdac3e2d3e60d8ccadda691f4f1cec5035cb #v4.3.1 + 3 commits diff --git a/build.sh b/build.sh index 029fadcd..367ce492 100755 --- a/build.sh +++ b/build.sh @@ -92,9 +92,7 @@ fi pandoc_version_opts=$(grep "^| *${pandoc_commit} *|" "$version_table_file") if [ -z "$pandoc_version_opts" ]; then - printf 'Unsupported version: %s; trying to create freeze file!\n' "$pandoc_commit" >&2 - export PANDOC_VERSION="$pandoc_commit" - make alpine-freeze-file + printf 'Unsupported version: %s; aborting!\n' "$pandoc_commit" >&2 exit 1 fi