File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -134,8 +134,12 @@ else
134
134
fi
135
135
136
136
# Get previous release name
137
- echo " ======== curl dumped header"
138
- if ! curl --silent -D /dev/stderr ${curl_gh_token_arg[@]} https://api.github.com/repos/esp8266/Arduino/releases > releases.json; then
137
+ echo " running: 'curl --silent -D curl-headers.txt ${curl_gh_token_arg[@]} https://api.github.com/repos/esp8266/Arduino/releases > releases.json'"
138
+ curl --silent -D curl-headers.txt ${curl_gh_token_arg[@]} https://api.github.com/repos/esp8266/Arduino/releases > releases.json
139
+ echo " ======== >>> curl dumped header >>>"
140
+ cat curl-headers.txt
141
+ echo " ======== <<< curl dumped header <<<"
142
+ if ! grep " 200 OK$" curl-headers.txt > /dev/null; then
139
143
if [ -z " $CI_GITHUB_API_KEY " ]; then
140
144
echo " ---- Bad moon phase, in a PR, exit successfully"
141
145
exit 0
@@ -144,7 +148,6 @@ if ! curl --silent -D /dev/stderr ${curl_gh_token_arg[@]} https://api.github.com
144
148
exit 1
145
149
fi
146
150
fi
147
- echo " ======== curl"
148
151
149
152
# Previous final release (prerelase == false)
150
153
prev_release=$( jq -r ' . | map(select(.draft == false and .prerelease == false)) | sort_by(.created_at | - fromdateiso8601) | .[0].tag_name' releases.json)
You can’t perform that action at this time.
0 commit comments