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