We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e29c79 + 3215cc0 commit 848d9bcCopy full SHA for 848d9bc
run.sh
@@ -3,11 +3,18 @@
3
set -x
4
set -e
5
set -u
6
+set -o pipefail
7
-export NEW_VERSION="${1}"
8
-export BRANCH_NAME="release-v${NEW_VERSION}"
9
-export GITHUB_ACTION_PATH="${2}"
10
-export RELEASE_BODY="$(awk -v version="${NEW_VERSION}" -f ${GITHUB_ACTION_PATH}/scripts/show-changelog.awk CHANGELOG.md)"
+NEW_VERSION="${1}"
+
+if [[ -z $NEW_VERSION ]]; then
11
+ echo "Error: No new version specified."
12
+ exit 1
13
+fi
14
15
+BRANCH_NAME="release-v${NEW_VERSION}"
16
+GITHUB_ACTION_PATH="${2}"
17
+RELEASE_BODY="$(awk -v version="${NEW_VERSION}" -f "${GITHUB_ACTION_PATH}"/scripts/show-changelog.awk CHANGELOG.md)"
18
19
git config user.name github-actions
20
git config user.email [email protected]
0 commit comments