Skip to content

Commit

Permalink
[fix] Issue Parser data bug in GitHub actions (#12)
Browse files Browse the repository at this point in the history
* [add] GitPod.io entry & configuration
[fix] 2 detail bugs in GitHub actions

* [fix] 2 detail bugs

* [fix] auto PR reviewer

* [fix] Issue Parser data bug in GitHub actions
  • Loading branch information
TechQuery committed Jul 5, 2024
1 parent d4eded3 commit 9692cd8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/submit-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,20 @@ jobs:
- uses: actions/checkout@v4

- id: issue-parser
uses: edumserrano/github-issue-forms-parser@v1
uses: stefanbuck/github-issue-parser@v3
with:
template-filepath: ".github/ISSUE_TEMPLATE/submit-data.yml"
issue-form-body: "${{ github.event.issue.body }}"
template-path: ".github/ISSUE_TEMPLATE/submit-data.yml"

- name: Add data to YAML
run: |
cat << EOF >> ${{ steps.issue-parser.outputs.parsed-issue.category }}.yml
cat << EOF >> ${{ steps.issue-parser.outputs.issueparser_category }}.yml
- name: "${{ github.event.issue.title }}"
author: "${{ steps.issue-parser.outputs.parsed-issue.author }}"
author: "${{ steps.issue-parser.outputs.issueparser_author }}"
description: |
${{ steps.issue-parser.outputs.parsed-issue.description }}
link: "${{ steps.issue-parser.outputs.parsed-issue.link }}"
${{ steps.issue-parser.outputs.issueparser_description }}
link: "${{ steps.issue-parser.outputs.issueparser_link }}"
EOF
- uses: peter-evans/create-pull-request@v6
with:
title: "[add] data of ${{ github.event.issue.title }}"
body: "closes #${{ github.event.issue.number }}"
reviewers: "${{github.repository_owner}}"

0 comments on commit 9692cd8

Please sign in to comment.