-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (31 loc) · 988 Bytes
/
order.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
name: Process order
on:
issues:
types: opened
concurrency: 'main'
jobs:
place_order:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/order-pizza.yml
- run: echo '${{ steps.issue-parser.outputs.jsonString }}' > order.json
- run: cat order.json
- run: node ./place-order.js
- name: Commit changes
shell: bash
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com" && \
git config --global user.name "github-actions[bot]" && \
git add README.md && \
git commit -m 'Place order' && \
git push
- uses: peter-evans/close-issue@v1
with:
comment: Pizza time! Check out the <a href="../">README</a>.