Skip to content

Commit 834f6d7

Browse files
[actions] Remove approve step in label action. (#11968) (#12014)
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.
1 parent 307164f commit 834f6d7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

.github/workflows/label.yml

-9
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@ jobs:
2222
label:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- name: approve
26-
env:
27-
GITHUB_CONTEXT: ${{ toJson(github) }}
28-
run: |
29-
set -e
30-
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
31-
url=$(echo $GITHUB_CONTEXT | jq -r '.event.pull_request._links.html.href')
32-
echo PR: $url
33-
gh pr review $url --approve
3425
- uses: actions/labeler@main
3526
with:
3627
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)