Skip to content

Commit

Permalink
Added minor changes to make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-wasabi committed Oct 17, 2020
1 parent c950fcb commit 5a17c0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion AUTHORS

This file was deleted.

6 changes: 3 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function getLatestTag() {
function verifyGitTag(){
# Verify if the provided tag locally exist (1) or not (0).
local TAG=$1
git tag | grep -c "^${TAG}$"
git tag | grep -c "^${TAG}$" || true
}

function createRelease(){
Expand Down Expand Up @@ -73,7 +73,7 @@ function createGitContributors() {
then touch CONTRIBUTORS
fi
git shortlog -s -n --all --no-merges | awk '{$1=""}1' | sort -u > CONTRIBUTORS
if [[ $(git status | grep -c 'CONTRIBUTORS' ) -gt 0 ]]
if [[ $(git status | grep -c 'CONTRIBUTORS' || true) -gt 0 ]]
then echo "INFO - Updating CONTRIBUTORS file"
git add CONTRIBUTORS
git commit -m "Updating CONTRIBUTORS file for release ${VERSION}" CONTRIBUTORS
Expand All @@ -87,7 +87,7 @@ function updateChangelogMd() {
docker run -it --rm -e CHANGELOG_GITHUB_TOKEN="${GITHUB_TOKEN}" -v "$(pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator -u "${GITHUB_USER}" -p "${GITHUB_PROJECT}" > /dev/null 2>&1

if [[ "${VERSION}" != "null" ]];then
if [[ $(git status | grep -c 'CHANGELOG.md') -gt 0 ]]
if [[ $(git status | grep -c 'CHANGELOG.md' || true) -gt 0 ]]
then echo "INFO - Updating CHANGELOG.md file"
git add CHANGELOG.md
git commit -m "Updating CHANGELOG.md file for release ${VERSION}" CHANGELOG.md
Expand Down

0 comments on commit 5a17c0b

Please sign in to comment.