Skip to content

Commit

Permalink
Simplify platform build check
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored Feb 16, 2024
1 parent 0dab76b commit e28b72f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
id: properties
run: |
version=${{ inputs.version }}
if (( $(echo "${version} > 0.281" | bc -l) )); then
platform="linux/amd64,linux/arm64"
else
if [ ${version} = "0.281" ] || [ "${version}" = "0.280" ]; then
platform="linux/amd64"
else
platform="linux/amd64,linux/arm64"
fi
echo "platforms=${platform}"
echo "platforms=${platform}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit e28b72f

Please sign in to comment.