We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0adfd72 commit d46d69fCopy full SHA for d46d69f
.github/workflows/automerge.yml
@@ -15,7 +15,7 @@ jobs:
15
- name: automerge
16
uses: 'pascalgn/[email protected]'
17
env:
18
- GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
+ GITHUB_TOKEN: '${{ secrets.TOKEN }}'
19
MERGE_LABELS: 'automerge'
20
MERGE_METHOD: 'squash'
21
MERGE_FILTER_AUTHOR: 'mssonicbld'
.github/workflows/label.yml
@@ -22,6 +22,13 @@ jobs:
22
label:
23
runs-on: ubuntu-latest
24
steps:
25
+ - name: approve
26
+ run: |
27
+ set -e
28
+ echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
29
+ url=$(echo $GITHUB_CONTEXT | jq -r '.event.pull_request._links.html.href')
30
+ echo PR: $url
31
+ gh pr review $url --approve
32
- uses: actions/labeler@main
33
with:
34
repo-token: "${{ secrets.GITHUB_TOKEN }}"
0 commit comments