From 4c10a8ac2d9fb4f93b46593959a8d25c02409ee2 Mon Sep 17 00:00:00 2001 From: Liu Shilong Date: Mon, 5 Sep 2022 14:56:22 +0800 Subject: [PATCH] [actions] Remove approve step in label action. (#11968) Why I did it Approve step needs special permission settings. We already added permission setting to enable bypass merging PR. So, approve step is not necessary. --- .github/workflows/label.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index ec04157110..5f8c0279b7 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -22,15 +22,6 @@ jobs: label: runs-on: ubuntu-latest steps: - - name: approve - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: | - set -e - echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token - url=$(echo $GITHUB_CONTEXT | jq -r '.event.pull_request._links.html.href') - echo PR: $url - gh pr review $url --approve - uses: actions/labeler@main with: repo-token: "${{ secrets.GITHUB_TOKEN }}"