Skip to content

Commit 8f34d16

Browse files
updated
1 parent 8646679 commit 8f34d16

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/postman.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)