File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,19 +126,19 @@ cat $srcdir/package/package_esp8266com_index.template.json | \
126
126
# Use Github API token, must be available
127
127
if [ -z " $CI_GITHUB_API_KEY " ]; then
128
128
echo " curl: API key not present"
129
- echo " running: 'curl --silent -D curl-headers.txt https://api.github.com/repos/esp8266/Arduino/releases > releases.json '"
129
+ echo " running: 'curl --silent -D curl-headers.txt https://api.github.com/repos/esp8266/Arduino/releases'"
130
130
curl --silent -D curl-headers.txt https://api.github.com/repos/esp8266/Arduino/releases > releases.json
131
131
else
132
132
echo " curl: API key is present"
133
- echo " running: 'curl --silent -D curl-headers.txt -H \" Authorization: token $CI_GITHUB_API_KEY \" https://api.github.com/repos/esp8266/Arduino/releases > releases.json '"
133
+ echo " running: 'curl --silent -D curl-headers.txt -H \" Authorization: token $CI_GITHUB_API_KEY \" https://api.github.com/repos/esp8266/Arduino/releases'"
134
134
curl --silent -D curl-headers.txt -H " Authorization: token $CI_GITHUB_API_KEY " https://api.github.com/repos/esp8266/Arduino/releases > releases.json
135
135
fi
136
136
137
137
# Get previous release name
138
138
echo " ======== >>> curl dumped header >>>"
139
139
cat curl-headers.txt
140
140
echo " ======== <<< curl dumped header <<<"
141
- if ! grep " 200 OK$ " curl-headers.txt > /dev/null; then
141
+ if ! grep " HTTP.* 200 OK" curl-headers.txt > /dev/null; then
142
142
if [ -z " $CI_GITHUB_API_KEY " ]; then
143
143
echo " ---- Bad moon phase, in a PR, exit successfully"
144
144
exit 0
You can’t perform that action at this time.
0 commit comments