-
-
Notifications
You must be signed in to change notification settings - Fork 200
39 lines (30 loc) · 1 KB
/
handle-submission.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
on:
issues:
types: [labeled]
jobs:
setup:
if: ${{ github.event.label.name == 'merge' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/submit-extension.yml
- run: echo '${{ steps.issue-parser.outputs.jsonString }}' > submission.json
- run: node submission.js
- run: yarn
- run: node ./update.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: node ./generate-readme.js
- run: |
git config user.email "github@stefanbuck.com"
git config user.name "Stefan Buck"
git add README.md data.json
git diff-index --quiet HEAD || git commit -m "Add new list item"
- run: git push
- uses: peter-evans/close-issue@v1
with:
comment: Merged! Check out the <a href="../">README</a>.