Skip to content

Commit

Permalink
fix(golang): Release fails if no changes (#32)
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
iliapolo authored Feb 4, 2021
1 parent 109f05d commit 9f367d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/jsii-release-golang
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ echo "Copying go modules to repository root"
cp -r ${dir}/* .

git add .
echo "Checking for changes"
if git diff-index --exit-code HEAD --; then
echo "No changes. Skipping"
exit 0
fi
git commit -m "${GIT_COMMIT_MESSAGE}"

for module in "${modules[@]}"; do
Expand Down

0 comments on commit 9f367d4

Please sign in to comment.