Skip to content

Commit

Permalink
Handle null in cloudflare projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqamz authored Sep 28, 2024
1 parent 1d96271 commit f4cd45d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/manual-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ jobs:
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}")
# Append project names from the current page to the variable
PROJECTS=$(echo "$RESPONSE" | jq -r '.result[].name')
PROJECTS=$(echo "$RESPONSE" | jq -r '.result[]?.name // empty')
EXISTING_PROJECTS+="$PROJECTS"$'\n'
# Check if more pages exist
Expand Down

0 comments on commit f4cd45d

Please sign in to comment.