Skip to content

Commit 5dd09ed

Browse files
committed
wip
1 parent c762de3 commit 5dd09ed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

package/build_boards_manager_package.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,12 @@ else
134134
fi
135135

136136
# 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
139143
if [ -z "$CI_GITHUB_API_KEY" ]; then
140144
echo "---- Bad moon phase, in a PR, exit successfully"
141145
exit 0
@@ -144,7 +148,6 @@ if ! curl --silent -D /dev/stderr ${curl_gh_token_arg[@]} https://api.github.com
144148
exit 1
145149
fi
146150
fi
147-
echo "======== curl"
148151

149152
# Previous final release (prerelase == false)
150153
prev_release=$(jq -r '. | map(select(.draft == false and .prerelease == false)) | sort_by(.created_at | - fromdateiso8601) | .[0].tag_name' releases.json)

0 commit comments

Comments
 (0)