Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

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

Pa1NarK7d33ab32db4d
diff --git a/.github/workflows/release-new-version.yml b/.github/workflows/release-new-version.yml
index f489a3f8de..872c207e8a 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