Skip to content
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 }}