Skip to content

Commit 932af45

Browse files
[actions] Update github actions label and automerge. (#11736) (#11909)
1. Add auto approve step when adding label to version upgrading PR. 2. Use mssonicbld TOKEN to merge version upgrading PR instead of 'github actions'
1 parent ed68e4c commit 932af45

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/label.yml

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ jobs:
2020
label:
2121
runs-on: ubuntu-latest
2222
steps:
23+
- name: approve
24+
run: |
25+
set -e
26+
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
27+
url=$(echo $GITHUB_CONTEXT | jq -r '.event.pull_request._links.html.href')
28+
echo PR: $url
29+
gh pr review $url --approve
2330
- uses: actions/labeler@main
2431
with:
2532
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)