From ec03cfac6bd931a55b948e9889af5ecf6ba497e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B0=8F=E7=99=BD?= <296015668@qq.com> Date: Sun, 3 Nov 2024 09:08:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a12426d..08b50ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,10 @@ jobs: id: get-version run: | version=$(curl -s 'https://api.github.com/repos/dataease/dataease/releases/latest' | jq -r ".tag_name") + if [ -z "${version}" ] || [ "${version}" == "null" ]; then + echo "Failed to get version" + exit 1 + fi echo "version=${version}" >> $GITHUB_ENV echo "version=${version}" >> $GITHUB_OUTPUT sed -i "s/ARG VERSION=.*/ARG VERSION=${version}/g" Dockerfile