From fa5b246953bffb9f64e810e6877d310b2fc091b4 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 4 Aug 2023 09:49:07 +0300 Subject: [PATCH 1/2] ci: delete comments by github-action[bot] --- .github/workflows/pr-cleanup.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pr-cleanup.yaml b/.github/workflows/pr-cleanup.yaml index 510c8f4299361..3b917009ac537 100644 --- a/.github/workflows/pr-cleanup.yaml +++ b/.github/workflows/pr-cleanup.yaml @@ -71,3 +71,10 @@ jobs: run: | set -euxo pipefail kubectl delete certificate "pr${{ steps.pr_number.outputs.PR_NUMBER }}-tls" -n pr-deployment-certs || echo "certificate not found" + + - name: Delete PR Comments + uses: izhangzhihao/delete-comment@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + delete_user_name: github-actions[bot] + issue_number: ${{ github.event.number }} From d41e0b984f13e64e354cd521133d9cd87dd703de Mon Sep 17 00:00:00 2001 From: Atif Ali Date: Fri, 4 Aug 2023 06:52:17 +0000 Subject: [PATCH 2/2] fmt --- .github/workflows/pr-cleanup.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-cleanup.yaml b/.github/workflows/pr-cleanup.yaml index 3b917009ac537..bb4f7146c7025 100644 --- a/.github/workflows/pr-cleanup.yaml +++ b/.github/workflows/pr-cleanup.yaml @@ -71,10 +71,10 @@ jobs: run: | set -euxo pipefail kubectl delete certificate "pr${{ steps.pr_number.outputs.PR_NUMBER }}-tls" -n pr-deployment-certs || echo "certificate not found" - - - name: Delete PR Comments + + - name: Delete PR Comments uses: izhangzhihao/delete-comment@master - with: + with: github_token: ${{ secrets.GITHUB_TOKEN }} delete_user_name: github-actions[bot] issue_number: ${{ github.event.number }}