mirror of
https://github.com/carhartl/talisman-secrets-scan-action.git
synced 2024-12-04 21:30:23 +00:00
Test for release script dependency
This commit is contained in:
parent
b4df355506
commit
263098b1a2
1 changed files with 4 additions and 0 deletions
4
run.sh
4
run.sh
|
@ -21,6 +21,10 @@ prep_release() {
|
||||||
_user "Prepare release draft on GitHub? "
|
_user "Prepare release draft on GitHub? "
|
||||||
read -r answer
|
read -r answer
|
||||||
if [ "$answer" = "y" ]; then
|
if [ "$answer" = "y" ]; then
|
||||||
|
if ! command -v gh > /dev/null 2>&1; then
|
||||||
|
_fail "Script requires GitHub CLI: \`brew install gh\`"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
git add --update
|
git add --update
|
||||||
git commit -S -m "Prepare for $1 release"
|
git commit -S -m "Prepare for $1 release"
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
Loading…
Reference in a new issue