Terraform managed file
This commit is contained in:
parent
a37f86cc55
commit
01367f8eae
@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
#
|
||||
# shellcheck disable=SC2119
|
||||
# shellcheck disable=SC2164
|
||||
|
||||
@ -596,8 +599,8 @@ function sign_file() {
|
||||
"o") output_file="${OPTARG}" ;;
|
||||
*) failure "Invalid flag provided" ;;
|
||||
esac
|
||||
shift $((OPTIND-1))
|
||||
done
|
||||
shift $((OPTIND-1))
|
||||
|
||||
# Check that a good input file was given
|
||||
if [ -z "${input_file}" ]; then
|
||||
@ -2064,6 +2067,10 @@ function github_create_release() {
|
||||
failure "Tag name is required for GitHub release"
|
||||
fi
|
||||
|
||||
if [ "${draft}" = "true" ] && [ "${prerelease}" = "true" ]; then
|
||||
failure "Release cannot be both draft and prerelease"
|
||||
fi
|
||||
|
||||
# If no name is provided, use the tag name value
|
||||
if [ -z "${name}" ]; then
|
||||
name="${tag_name}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user