Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(postman): Fix auto-update collection files #2758

Merged
merged 10 commits into from
Nov 6, 2023
12 changes: 11 additions & 1 deletion .github/workflows/release-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,17 @@ 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 diff --quiet && git diff --staged --quiet; then
echo "No changes detected."
elif git add postman; then
echo "Changes have been staged."
elif git commit -am 'test(postman): update postman collection files'; then
echo "Committed changes."
pixincreate marked this conversation as resolved.
Show resolved Hide resolved
else
echo "Unable to commit the following changes:"
git diff
fi
pixincreate marked this conversation as resolved.
Show resolved Hide resolved

- name: Obtain previous and new tag information
shell: bash
Expand Down
Loading