File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,32 @@ jobs:
2222
2323 - name : Install Postman CLI
2424 run : |
25+ # Fixed: removed trailing space in URL
2526 curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh
2627
2728 - name : Login to Postman CLI
2829 run : postman login --with-api-key "$POSTMAN_API_KEY"
2930
30- - name : Pull Postman Collection
31+ - name : Pull and Verify Postman Collection
3132 run : |
3233 mkdir -p collections
34+ echo "⬇️ Attempting to pull collection: Feedlink"
3335 postman pull "Feedlink" --output collections/feedlink.json
3436
37+ # Verify the file exists and is not empty
38+ if [ ! -f collections/feedlink.json ] || [ ! -s collections/feedlink.json ]; then
39+ echo "❌ ERROR: Failed to pull collection 'Feedlink'."
40+ echo "📋 Available collections in your workspaces:"
41+ postman list collections
42+ echo ""
43+ echo "💡 Make sure the name matches EXACTLY (case, spaces, symbols)."
44+ echo "✅ Recommendation: Use the collection UID instead of name."
45+ exit 1
46+ fi
47+
48+ echo "✅ Collection successfully pulled: collections/feedlink.json"
49+ echo "📄 Size: $(wc -c < collections/feedlink.json) bytes"
50+
3551 - name : Run API tests
3652 run : |
3753 mkdir -p reports
You can’t perform that action at this time.
0 commit comments