-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
73 lines (70 loc) · 2.09 KB
/
action.yml
File metadata and controls
73 lines (70 loc) · 2.09 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: "@gracefullight/rssify"
description: "Create RSS feed from a web page"
author: "gracefullight"
inputs:
TITLE:
description: "Title of the RSS feed"
required: true
SUBTITLE:
description: "Subtitle of the RSS feed"
URL:
description: "URL of the web page to create RSS feed from"
required: true
AUTHOR_URL:
description: "Author URL of the RSS feed"
AUTHOR_NAME:
description: "Author name of the RSS feed"
AUTHOR_EMAIL:
description: "Author email of the RSS feed"
COPYRIGHT:
description: "Copyright of the RSS feed"
LANGUAGE:
description: "Language of the RSS feed"
ITEM_TITLE_CSS:
description: "CSS selector for item title elements"
required: true
ITEM_URL_CSS:
description: "CSS selector for item URL elements"
required: true
ITEM_DATE_CSS:
description: "CSS selector for item date elements"
required: true
ITEM_AUTHOR_CSS:
description: "CSS selector for item author elements"
ITEM_DESCRIPTION_CSS:
description: "CSS selector for item description elements"
ITEM_IMAGE_CSS:
description: "CSS selector for item image elements"
ITEM_DATE_FORMAT:
description: "Date format for the item date elements"
ITEM_TIMEZONE:
description: "Timezone for the item date elements"
FILENAME:
description: "Name of the generated RSS feed file"
runs:
using: "composite"
steps:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Build
run: yarn && yarn build
shell: bash
- name: Generate RSS
run: yarn node ${{ github.action_path }}/dist/rssify.js
shell: bash
- name: Store RSS files in the repo
run: |
# git commit if there's any change
if test -n "$(git status --porcelain 2>/dev/null)"; then
git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions[bot]"
git add .
git commit -m "chore: 🛰️ update RSS file"
git push origin ${GITHUB_REF##*/}
fi
shell: bash
branding:
icon: "rss"
color: "green"