Skip to content

Commit 195fc22

Browse files
committed
Remove action user by 'github-actions'
1 parent 590d585 commit 195fc22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

screenShotCompare.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ case $OS in
3030
esac
3131

3232
echo "=> delete all old comments, starting with Screenshot differs:$emulatorApi"
33-
oldComments=$(curl_gh -X GET https://api.github.com/repos/"$GITHUB_REPOSITORY"/issues/"$PR"/comments | jq '.[] | (.id |tostring) + "|" + (.user.login | test("github-actions") | tostring) + "|" + (.body | test("Screenshot differs:'$emulatorApi'.*") | tostring)' | grep "true|true" | tr -d "\"" | cut -f1 -d"|")
33+
34+
oldComments=$(curl_gh -X GET https://api.github.com/repos/"$GITHUB_REPOSITORY"/issues/"$PR"/comments | jq '.[] | (.id |tostring) + "|" + (.body | test("Screenshot differs:'$emulatorApi'.*") | tostring)' | grep "|true" | tr -d "\"" | cut -f1 -d"|")
3435
echo "comments=$comments"
3536
echo "$oldComments" | while read comment; do
3637
echo "delete comment=$comment"

0 commit comments

Comments
 (0)