-
Notifications
You must be signed in to change notification settings - Fork 18
40 lines (37 loc) · 1.17 KB
/
crawler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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.event.issue.number }}
href: ${{ github.server_url }}/${{ github.repository }}/issue/${{ github.event.issue.number }}