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

[Auto](如何使用 TypeScript、Next.js、Redux-toolkit 和 Firebase 构建全栈看板任务管理应用程序) #422

[Auto](如何使用 TypeScript、Next.js、Redux-toolkit 和 Firebase 构建全栈看板任务管理应用程序)

[Auto](如何使用 TypeScript、Next.js、Redux-toolkit 和 Firebase 构建全栈看板任务管理应用程序) #422

name: Web page to Markdown
on:
issues:
types:
- opened
jobs:
WebPageToMarkdown:
runs-on: ubuntu-latest
permissions:
issues: write
contents: write
steps:
- name: Issue does not need to generate markdown
if: ${{ !startsWith(github.event.issue.title, '[Auto]') }}
shell: bash
run: echo "This issue does not need to generate a markdown file." 1>&2; exit 1;
- name: The description of the issue is empty
if: ${{ !github.event.issue.body }}
shell: bash
run: echo "The description of the issue is empty." 1>&2; exit 1;
- 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