Skip to content

create branch

create branch #14

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: Create and Push New Branch
run: |
git checkout -b test-branch
git add extracted-data.json
git commit -m "Add extracted-data.json"
git push --set-upstream origin test-branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}