翻译自动化基础设施升级 #6
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
name: Fetch Web pages | |
on: | |
issues: | |
types: | |
- labeled | |
jobs: | |
Fetch-and-Save: | |
if: github.event.label.name == 'crawler' | |
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: "./translation/" | |
githubToken: ${{ github.token }} | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "${{ github.event.issue.title }}" | |
- name: Lark notification | |
uses: foxundermoon/feishu-action@v2 | |
with: | |
url: ${{ secrets.LARK_CHATBOT_HOOK_URL }} | |
msg_type: post | |
content: | | |
post: | |
zh_cn: | |
title: 开源文库 GitHub 文章爬取 | |
content: | |
- - tag: text | |
text: Issue | |
- tag: a | |
text: ${{ github.server_url }}/${{ github.repository }}/issues/${{ github.event.issue.number }} | |
href: ${{ github.server_url }}/${{ github.repository }}/issues/${{ github.event.issue.number }} |