Skip to content

[Auto](JavaScript 中的作用域:全局作用域、本地作用域与块级作用域详解) #413

[Auto](JavaScript 中的作用域:全局作用域、本地作用域与块级作用域详解)

[Auto](JavaScript 中的作用域:全局作用域、本地作用域与块级作用域详解) #413

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