create branch #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |