We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d71178b commit 3231eb4Copy full SHA for 3231eb4
1 file changed
.github/workflows/deploy.yml
@@ -74,13 +74,18 @@ jobs:
74
75
- name: Get APS app nickname
76
run: |
77
- NICKNAME=$(curl -s -X GET \
+ RESPONSE=$(curl -s -X GET \
78
"$DA_BASE_URL/forgeapps/me" \
79
- -H "Authorization: Bearer $APS_TOKEN" | jq -r '.nickname')
80
- if [ "$NICKNAME" = "null" ] || [ -z "$NICKNAME" ]; then
+ -H "Authorization: Bearer $APS_TOKEN")
+
81
+ NICKNAME=$(echo "$RESPONSE" | jq -r 'if type=="object" then .nickname elif type=="string" then . else empty end' 2>/dev/null)
82
83
+ if [ -z "$NICKNAME" ] || [ "$NICKNAME" = "null" ]; then
84
echo "::error::Failed to get app nickname"
85
+ echo "$RESPONSE"
86
exit 1
87
fi
88
89
echo "NICKNAME=$NICKNAME" >> "$GITHUB_ENV"
90
91
- name: Check if AppBundle exists
0 commit comments