Browse Source
CI: print curl response for repology metadata
master
Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with
2 additions and
0 deletions
-
.github/workflows/repology_metadata.yml
|
|
@ -34,6 +34,7 @@ jobs: |
|
|
|
"https://api.bintray.com/content/termux/metadata/repology/packages.json") |
|
|
|
if [[ $(echo "$response" | cut -d'|' -f2) != "200" ]] && [[ $(echo "$response" | cut -d'|' -f2) != "404" ]]; then |
|
|
|
echo "Old medatata deletion failed !" |
|
|
|
echo "response: $response" |
|
|
|
fi |
|
|
|
response=$(curl --silent --user "${BINTRAY_USERNAME}:${BINTRAY_API_KEY}" --request PUT \ |
|
|
|
--header "X-Bintray-Package: repology" --header "X-Bintray-Version: current" \ |
|
|
@ -41,6 +42,7 @@ jobs: |
|
|
|
"https://api.bintray.com/content/termux/metadata/repology/packages.json") |
|
|
|
if [[ $(echo "$response" | cut -d'|' -f2) != "201" ]] && [[ $(echo "$response" | cut -d'|' -f2) != "409" ]]; then |
|
|
|
echo "New metadata uploading failed !" |
|
|
|
echo "response: $response" |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
- name: Store packages.json as artifact |
|
|
|