ソースを参照

This fixes removal of built QA versions, due to moving QA to github actions

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 4 年 前
コミット
c91aef3c3a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      scripts/uploadArtifact.sh

+ 1 - 1
scripts/uploadArtifact.sh

@@ -20,7 +20,7 @@ fi
 echo "Uploaded artifact to $DAV_URL/$BUILD.apk"
 echo "Uploaded artifact to $DAV_URL/$BUILD.apk"
 
 
 # delete all old comments, starting with "APK file:"
 # delete all old comments, starting with "APK file:"
-oldComments=$(curl 2>/dev/null --header "authorization: Bearer $GITHUB_TOKEN" -X GET https://api.github.com/repos/nextcloud/android/issues/$PR/comments | jq '.[] | (.id |tostring) + "|" + (.user.login | test("nextcloud-android-bot") | tostring) + "|" + (.body | test("APK file:.*") | tostring)'  | grep "true|true" | tr -d "\"" | cut -f1 -d"|")
+oldComments=$(curl 2>/dev/null --header "authorization: Bearer $GITHUB_TOKEN" -X GET https://api.github.com/repos/nextcloud/android/issues/$PR/comments | jq '.[] | (.id |tostring) + "|" + (.user.login | test("github-actions") | tostring) + "|" + (.body | test("APK file:.*") | tostring)'  | grep "true|true" | tr -d "\"" | cut -f1 -d"|")
 
 
 echo $oldComments | while read comment ; do
 echo $oldComments | while read comment ; do
     curl 2>/dev/null --header "authorization: Bearer $GITHUB_TOKEN" -X DELETE https://api.github.com/repos/nextcloud/android/issues/comments/$comment
     curl 2>/dev/null --header "authorization: Bearer $GITHUB_TOKEN" -X DELETE https://api.github.com/repos/nextcloud/android/issues/comments/$comment