-
Notifications
You must be signed in to change notification settings - Fork 85
49 lines (48 loc) · 1.28 KB
/
render-table.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
43
44
45
46
47
48
49
name: Render RFC Table
on:
issues:
types:
[
opened,
edited,
deleted,
transferred,
assigned,
unassigned,
labeled,
unlabeled,
]
workflow_dispatch: {}
jobs:
render:
runs-on: ubuntu-latest
concurrency:
group: update-table
cancel-in-progress: true
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: install dependencies
run: npm --prefix tools/rfc-render ci
- name: render tables
env:
PROJEN_GITHUB_TOKEN: ${{ secrets.PROJEN_GITHUB_TOKEN }}
run: npm --prefix tools/rfc-render run render:all
- name: Create Pull Request
id: pr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
commit-message: Update RFC table in README
title: Update RFC table in README
branch: auto/update-rfc-table
labels: auto-approve
- name: Auto approve PR
if: ${{ steps.pr.outputs.pull-request-number }}
uses: hmarr/auto-approve-action@v3
with:
pull-request-number: ${{ steps.pr.outputs.pull-request-number }}