[actions] Remove approve step in label action. (#12015)
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.
This commit is contained in:
parent
38cc35f6da
commit
98d6357ae7
9
.github/workflows/label.yml
vendored
9
.github/workflows/label.yml
vendored
@ -22,15 +22,6 @@ jobs:
|
|||||||
label:
|
label:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- uses: actions/labeler@main
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user