1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

Feature/scripts (#87)

* * refactor create-release-branch.sh

* * refactor rebuild.sh

* * refactor update-dependencies.sh
This commit is contained in:
shimataro 2020-01-23 23:20:07 +09:00 committed by GitHub
parent 410fe0c2fb
commit 918fed51a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 21 deletions

View file

@ -3,6 +3,8 @@
# - git; I believe it's already installed.
# - sed; GNU sed is preferred. POSIX sed may not work.
set -e
BASE_BRANCH="develop"
PACKAGE_NAME="ssh-key-action"
@ -36,14 +38,14 @@ function main() {
check_version_format ${VERSION}
check_current_branch
run create_branch ${BRANCH}
run update_changelog ${VERSION}
run update_package_version ${VERSION}
run update_dependencies_version
run regenerate_package_lock
run build_package
run commit_changes ${VERSION}
run finish ${VERSION} ${BRANCH} ${TAG}
create_branch ${BRANCH}
update_changelog ${VERSION}
update_package_version ${VERSION}
update_dependencies_version
regenerate_package_lock
build_package
commit_changes ${VERSION}
finish ${VERSION} ${BRANCH} ${TAG}
}
function usage() {
@ -91,10 +93,6 @@ function check_current_branch() {
exit 2
}
function run() {
"$@" || exit 1
}
function create_branch() {
local BRANCH=$1