mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
ci: Fix release workflow input booleans, remove snapshot (#5688)
* s/github.event.inputs/inputs/g * Add run name and prevent non-dry-run releases on non-main branches * Add logrun to lib.sh
This commit is contained in:
committed by
GitHub
parent
575bfabfcb
commit
a5073a8770
@ -131,11 +131,18 @@ maybedryrun() {
|
||||
log "DRYRUN: $*"
|
||||
else
|
||||
shift
|
||||
log $ "$@"
|
||||
"$@"
|
||||
logrun "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
# logrun prints the given program and flags, and then executes it.
|
||||
#
|
||||
# Usage: logrun gh release create ...
|
||||
logrun() {
|
||||
log $ "$*"
|
||||
"$@"
|
||||
}
|
||||
|
||||
# log prints a message to stderr.
|
||||
log() {
|
||||
echo "$*" 1>&2
|
||||
|
@ -167,7 +167,7 @@ else
|
||||
fi
|
||||
|
||||
log
|
||||
gh workflow run release.yaml \
|
||||
logrun gh workflow run release.yaml \
|
||||
--ref "$branch" \
|
||||
-F increment="$increment" \
|
||||
"${args[@]}"
|
||||
|
Reference in New Issue
Block a user