Release action: Do not fail if "latest" is not set (#793)

This commit is contained in:
Malte Poll 2022-12-14 14:59:06 +01:00 committed by GitHub
parent 5967b98c25
commit a1d59df1c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,11 +38,11 @@ jobs:
aws-region: eu-central-1
- name: Update OS images
working-directory: hack/add-version
run: |
latest=$( [[ "${{ inputs.latest }}" = "true" ]] && echo "--latest")
latest=$([[ "${{ inputs.latest }}" = "true" ]] && echo "--latest" || echo "")
go run main.go \
--version "${{ github.event.release.tag_name }}${{ github.event.inputs.tag }}" \
--stream stable \
--release \
"${latest}"
working-directory: hack/add-version