-
-
Notifications
You must be signed in to change notification settings - Fork 184
42 lines (37 loc) · 1.4 KB
/
autogenerate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Autogenerate code
on:
workflow_dispatch:
schedule:
- cron: "0 10 * * *"
jobs:
autogenerate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: v0.10.1
- name: make generate
run: make generate
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.PAT }}
author: "William Botman <[email protected]>"
committer: "William Botman <[email protected]>"
add-paths: lua/mason-lspconfig
commit-message: "chore: update generated code"
branch: chore/generate
branch-suffix: short-commit-hash
delete-branch: true
labels: automerge
title: "chore: update generated code"
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ secrets.PAT }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: squash