-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathaction.yml
More file actions
38 lines (36 loc) · 1.25 KB
/
action.yml
File metadata and controls
38 lines (36 loc) · 1.25 KB
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
name: 'article-webpage-to-markdown-action'
description: "Automatically generate Markdown files based on the webpages of articles. Currently supports freeCodeCamp's news site."
author: 'freeCodeCamp-China'
inputs:
pageURL:
description: 'A string contains an Original Article URL'
required: true
includedSelector:
description: 'CSS selector of elements which should be included'
excludedSelector:
description: 'CSS selector of elements which should be excluded'
markdownFolder:
description: 'Path of the generated MarkDown file is a Relative Path relative to current working directory'
required: false
default: './'
githubToken:
description: ' GitHub write and read token, auto created, no need to set'
default: ''
runs:
using: 'node20'
main: 'dist/index.js'
outputs:
original_url:
description: 'The original URL of the article.'
title:
description: 'The title of the article.'
date:
description: 'The publish date of the article.'
author:
description: 'The author of the article.'
author_url:
description: 'The URL of the article author.'
markdown_file_path:
description: 'The path to the generated Markdown file.'
editor_url:
description: 'The editor URL of the generated Markdown file.'