form_submit #94
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: yaml_form | |
on: | |
repository_dispatch: | |
inputs: | |
response: | |
description: form_response | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- run: pip install -r requirements.txt | |
- name: MakeYaml | |
run: "echo '${{ github.event.client_payload.response}}' > new_ref.yaml" | |
- name: CheckMD5 | |
run: (md5sum new_ref.yaml | (awk '{print $1}')) | |
- name: NewBranch | |
run: | | |
git config --global user.email '[email protected]' | |
git config --global user.name 'joselynn wallace' | |
git checkout -B `(md5sum new_ref.yaml | (awk '{print $1}'))` | |
python parser.py | |
git add . | |
git commit -m 'adding new_parsed.yaml' | |
git push --set-upstream origin `(md5sum new_ref.yaml | (awk '{print $1}'))` |