Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

[Auto] 如何编写一个能用在任何框架的组件 #420

[Auto] 如何编写一个能用在任何框架的组件

[Auto] 如何编写一个能用在任何框架的组件 #420

name: Web page to Markdown
on:
issues:
types:
- opened
jobs:
WebPageToMarkdown:
runs-on: ubuntu-latest
steps:
- name: Does the issue need to be converted to markdown
shell: bash
run: |
if [ "${{ github.event.issue.body }}" ]; then
if [[ "${{ github.event.issue.title }}" =~ ^\[Auto\]* ]]; then
:
else
echo "This issue does not need to generate a markdown file." 1>&2
exit 1;
fi;
else
echo "The description of the issue is empty." 1>&2
exit 1;
fi;
- uses: actions/checkout@v3
- name: Crawl pages and generate Markdown files
uses: freeCodeCamp-China/article-webpage-to-markdown-action@v1
with:
newsLink: '${{ github.event.issue.Body }}'
ignoreSelector: '.ad-wrapper'
markDownFilePath: './chinese/articles/'
githubToken: ${{ github.token }}
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '${{ github.event.issue.title }}'
file_pattern: chinese/articles/*.md
commit_user_name: PageToMarkdown Bot
commit_user_email: PageToMarkdown-bot@freeCodeCamp.org