Skip to content

Commit e4fd04c

Browse files
committed
update ci
1 parent 6768849 commit e4fd04c

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/automerge.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ jobs:
88
auto-merge:
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Label PR
12+
if: github.event.pull_request.title == '[pre-commit.ci] pre-commit autoupdate'
13+
run: |
14+
curl -X POST \
15+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
16+
-H "Accept: application/vnd.github.v3+json" \
17+
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
18+
-d '{"labels":["automerge"]}'
1119
- name: Automatic Merge
1220
uses: pascalgn/[email protected]
13-
if: github.event.pull_request.title == '[pre-commit.ci] pre-commit autoupdate'
14-
with:
21+
env:
1522
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
16-
MERGE_LABELS: ""
17-
MERGE_REMOVE_LABELS: "auto-merge"
18-
MERGE_METHOD: "squash"
19-
MERGE_COMMIT_MESSAGE: "pull-request-title"
20-
MERGE_FORKS: false
21-
MERGE_RETRIES: "6"
22-
MERGE_RETRY_SLEEP: "10000"
23-
MERGE_DELETE_BRANCH: true

0 commit comments

Comments
 (0)