Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit ec03cfa

Browse files
fix: 修正版本获取判断
1 parent 978e1dc commit ec03cfa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
id: get-version
2121
run: |
2222
version=$(curl -s 'https://api.github.com/repos/dataease/dataease/releases/latest' | jq -r ".tag_name")
23+
if [ -z "${version}" ] || [ "${version}" == "null" ]; then
24+
echo "Failed to get version"
25+
exit 1
26+
fi
2327
echo "version=${version}" >> $GITHUB_ENV
2428
echo "version=${version}" >> $GITHUB_OUTPUT
2529
sed -i "s/ARG VERSION=.*/ARG VERSION=${version}/g" Dockerfile

0 commit comments

Comments
 (0)