-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.17 KB
/
issue-forms-body-parser.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
name: Issue Forms Body Parser
on: issues
jobs:
process:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Issue Forms Body Parser
id: parse
uses: zentered/issue-forms-body-parser@v2.0.0
- run: |
echo '${{ steps.parse.outputs.data }}' > issue.json
cat issue.json
- run: node parse-json.js
- run: |
ls -la
cat extracted-data.json
- name: Initialize mandatory git config
run: |
git config user.name "GitHub Actions"
git config user.email noreply@github.com
- name: Install dependencies
run: npm install js-yaml
- name: Convert JSON to YAML
run: |
node json-to-yaml.js
cat yaml-data.yml
- name: Create and Push New Branch
run: |
git checkout -b third-branch
git add extracted-data.json
git add .github/repos/repo-settings.yml
git commit -m "Add extracted-data.json"
git push --set-upstream origin third-branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}