blob: 7f11b9ada773137962e41867bb90e47c1a5a21c0 (
plain) (
blame)
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
|
name: Bot automation
on:
pull_request_review:
types:
- submitted
- edited
jobs:
make-generate:
if: github.event.sender.login == 'williamboman' && contains(github.event.review.body, '@williambotman /generate')
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
token: ${{ secrets.PAT }}
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: v0.7.0
- name: make generate
run: make generate
- uses: EndBug/add-and-commit@v9
with:
author_name: William Botman
author_email: william+bot@redwill.se
message: "chore: run make generate"
push: true
|