Split Pull Request Comment Body as Arguments into JSON Key-Values
Github Action for splitting pull request comment body arguments into JSON key-values. You can add any arguments and it will change the output into JSON key-values. For example, --<key>=<value> will be converted to:
{
<key>: "<value>"
}
Example usage
jobs:
build:
runs-on: ubuntu-lateststeps:
- name: Checkoutuses: actions/checkout@v2
- name: Split comment to argsuses: qassandrach/split-comment-to-argsid: splitwith:
comment: ${{ github.event.comment.body }}
- name: Some other actionrun: | echo ${{ fromJSON(steps.split.outputs.result.<key>) }}