mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-08 05:40:31 +00:00
tools: Update publish.sh
This commit is contained in:
@@ -15,14 +15,6 @@ trap 's=$?; echo >&2 "$0: error on line "${LINENO}": ${BASH_COMMAND}"; exit ${s}
|
|||||||
# Note: This script requires the following tools:
|
# Note: This script requires the following tools:
|
||||||
# - parse-changelog <https://github.com/taiki-e/parse-changelog>
|
# - parse-changelog <https://github.com/taiki-e/parse-changelog>
|
||||||
|
|
||||||
x() {
|
|
||||||
local cmd="$1"
|
|
||||||
shift
|
|
||||||
(
|
|
||||||
set -x
|
|
||||||
"${cmd}" "$@"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
retry() {
|
retry() {
|
||||||
for i in {1..10}; do
|
for i in {1..10}; do
|
||||||
if "$@"; then
|
if "$@"; then
|
||||||
@@ -108,8 +100,11 @@ echo "======================================="
|
|||||||
|
|
||||||
if [[ -n "${tags}" ]]; then
|
if [[ -n "${tags}" ]]; then
|
||||||
# Create a release commit.
|
# Create a release commit.
|
||||||
x git add "${changelog}"
|
(
|
||||||
x git commit -m "Release ${version}"
|
set -x
|
||||||
|
git add "${changelog}"
|
||||||
|
git commit -m "Release ${version}"
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tools=()
|
tools=()
|
||||||
|
|||||||
Reference in New Issue
Block a user