diff --git a/bin/jsii-release-golang b/bin/jsii-release-golang index cee14ece..e72e8f58 100755 --- a/bin/jsii-release-golang +++ b/bin/jsii-release-golang @@ -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