└── .github ├── ISSUE_TEMPLATE └── example.yml └── workflows └── order.yml /.github/ISSUE_TEMPLATE/example.yml: -------------------------------------------------------------------------------- 1 | name: Test 2 | description: Codeless contribution made easy! 3 | 4 | title: "Example" 5 | 6 | body: 7 | - type: input 8 | id: favorite_dish 9 | attributes: 10 | label: What's your favorite dish? 11 | validations: 12 | required: true 13 | 14 | - type: checkboxes 15 | id: favorite_color 16 | attributes: 17 | label: What's your preferred color? 18 | options: 19 | - label: Red 20 | - label: Green 21 | - label: Blue 22 | -------------------------------------------------------------------------------- /.github/workflows/order.yml: -------------------------------------------------------------------------------- 1 | name: Process order 2 | on: 3 | issues: 4 | types: opened 5 | concurrency: 'main' 6 | jobs: 7 | place_order: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/checkout@v2 11 | 12 | - uses: actions/setup-node@v2 13 | with: 14 | node-version: '16' 15 | 16 | - uses: stefanbuck/github-issue-praser@v3 17 | id: issue-parser 18 | with: 19 | template-path: .github/ISSUE_TEMPLATE/example.yml 20 | 21 | - run: echo '${{ steps.issue-parser.outputs.jsonString }}' > output.json 22 | 23 | - run: cat output.json 24 | - run: echo "${{ steps.issue-parser.outputs.issueparser_favorite_dish }}" 25 | - run: echo "${{ steps.issue-parser.outputs.issueparser_favorite_color }}" 26 | --------------------------------------------------------------------------------