辅導癌症患者及家属技巧 #3
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: Data submission | |
on: | |
issues: | |
types: | |
- labeled | |
jobs: | |
Parse-and-Submit: | |
if: github.event.label.name == 'documentation' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- id: issue-parser | |
uses: stefanbuck/github-issue-parser@v3 | |
with: | |
template-path: ".github/ISSUE_TEMPLATE/submit-data.yml" | |
- name: Add data to YAML | |
run: | | |
cat << EOF >> ${{ steps.issue-parser.outputs.issueparser_category }}.yml | |
- name: "${{ github.event.issue.title }}" | |
author: "${{ steps.issue-parser.outputs.issueparser_author }}" | |
description: | | |
${{ 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 }}" |