From 6e441607a5c888f5ee5f2cea7a8dcd974cb3b41b Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Wed, 8 Nov 2023 11:18:46 +0530 Subject: [PATCH] chore: disable comments from known bots --- .github/workflows/github-no-web-commits.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-no-web-commits.yml b/.github/workflows/github-no-web-commits.yml index a89ae123e94..fddf466db1d 100644 --- a/.github/workflows/github-no-web-commits.yml +++ b/.github/workflows/github-no-web-commits.yml @@ -20,7 +20,7 @@ jobs: PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") COMMITS_URL="https://api.github.com/repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER/commits" - IS_GITHUB_COMMIT=$(curl --header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "$COMMITS_URL" | jq '[.[] | .commit.committer.name] | any(.[]; . == "GitHub")') + IS_GITHUB_COMMIT=$(curl --header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "$COMMITS_URL" | jq '[.[] | select(.commit.committer.name == "GitHub" and (.commit.author.name == "renovate[bot]" or .commit.author.name == "camperbot"))] | any') if [ "$IS_GITHUB_COMMIT" = "true" ]; then # Set variable for next task