forked from mobxjs/zh.mobx.js.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add GitHub action & issue form for Original fetching
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 📑 Translation Task | ||
description: 创建翻译任务 | ||
|
||
title: <原文标题> | ||
labels: | ||
- 📖 documentation | ||
body: | ||
- type: input | ||
attributes: | ||
label: 原文网址 | ||
placeholder: 如 https://mobx.js.org/enabling-decorators.html | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 备注 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Fetch Original Document pages | ||
on: | ||
issues: | ||
types: | ||
- labeled | ||
jobs: | ||
Fetch-and-Save: | ||
if: github.event.label.name == '📖 documentation' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
issues: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: freeCodeCamp-China/article-webpage-to-markdown-action@v1 | ||
with: | ||
newsLink: "${{ github.event.issue.Body }}" | ||
markDownFilePath: "./docs/" | ||
githubToken: ${{ github.token }} | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "${{ github.event.issue.title }}" |