diff --git a/.github/workflows/release-new-version.yml b/.github/workflows/release-new-version.yml index f489a3f8de2a..872c207e8aa3 100644 --- a/.github/workflows/release-new-version.yml +++ b/.github/workflows/release-new-version.yml @@ -74,7 +74,11 @@ jobs: connector=$(basename ${connector_dir}) newman dir-import ${POSTMAN_DIR}/${connector} -o ${POSTMAN_JSON_DIR}/${connector}.postman_collection.json done - (git diff --quiet && git diff --staged --quiet) || (git commit -am 'test(postman): update postman collection files' && echo "Committed changes") || (echo "Unable to commit the following changes:" && git diff) + + if git add postman && ! git diff --staged --quiet postman; then + git commit --message 'test(postman): update postman collection files' + echo "Changes detected and commited." + fi - name: Obtain previous and new tag information shell: bash