Skip to content

(理解 Nodejs 中的 AbortController) #198

(理解 Nodejs 中的 AbortController)

(理解 Nodejs 中的 AbortController) #198

Workflow file for this run

name: Fetch Web pages
on:
issues:
types:
- labeled
jobs:
Fetch-and-Save:
if: github.event.label.name == 'Translation'
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
steps:
- uses: actions/checkout@v4
- id: issue-parser
uses: stefanbuck/github-issue-parser@v3
with:
template-path: ".github/ISSUE_TEMPLATE/translation.yml"
- id: fetch-md
uses: freeCodeCamp-China/article-webpage-to-markdown-action@v2
with:
pageURL: "${{ steps.issue-parser.outputs.issueparser_page_link }}"
markdownFolder: "./_drafts/Article/Translation/"
githubToken: ${{ github.token }}
- name: 将输出发至评论区
run: gh issue comment "$NUMBER" --body "$BODY"
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: |
- 原文网址: [${{ steps.fetch-md.outputs.title }}](${{ steps.fetch-md.outputs.original_url }})
- 原文作者: [${{ steps.fetch-md.outputs.author || 'anonymous' }}](${{ steps.fetch-md.outputs.author_url }})
- Markdown 文件: [点击编辑](${{ steps.fetch-md.outputs.editor_url }})
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "${{ github.event.issue.title }}"
- name: 飞书通知
uses: foxundermoon/feishu-action@v2
with:
url: ${{ secrets.LARK_CHATBOT_HOOK_URL }}
msg_type: post
content: |
post:
en_us:
title: 技术文章翻译计划 - GitHub 文章爬取
content:
- - tag: text
text: 提交人:
- tag: a
text: ${{ github.event.issue.user.login }}
href: ${{ github.server_url }}/${{ github.event.issue.user.login }}
- - tag: text
text: 任务卡:
- tag: a
text: ${{ github.server_url }}/${{ github.repository }}/issues/${{ github.event.issue.number }}
href: ${{ github.server_url }}/${{ github.repository }}/issues/${{ github.event.issue.number }}