Skip to content

Commit

Permalink
fix: 修正版本获取判断
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Nov 3, 2024
1 parent 978e1dc commit ec03cfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec03cfa

Please sign in to comment.