-
Notifications
You must be signed in to change notification settings - Fork 4
73 lines (72 loc) · 2.5 KB
/
feedbot.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
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
name: FeedBot
on:
schedule:
- cron: '*/15 * * * *'
workflow_dispatch:
jobs:
rss-to-slack:
runs-on: ubuntu-latest
steps:
- name: Generate cache key
uses: actions/github-script@v6
id: generate-key
with:
script: |
core.setOutput('cache-key', new Date().valueOf())
- name: Retrieve cache
uses: actions/cache@v2
with:
path: ./slackfeedbot-cache
key: feed-cache-i-${{ steps.generate-key.outputs.cache-key }}
restore-keys: feed-cache-i-
- name: LAT
uses: 'selfagency/slackfeedbot@dev'
with:
rss: 'https://www.latimes.com/rss2.0.xml'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
cache_dir: './slackfeedbot-cache'
continue-on-error: true
- name: WaPo
uses: 'selfagency/slackfeedbot@dev'
with:
rss: 'https://feeds.washingtonpost.com/rss/homepage'
feed_name: 'Washington Post'
feed_image: 'https://www.washingtonpost.com/wp-stat/assets/favicons/touch-icon-iphone.png'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
cache_dir: './slackfeedbot-cache'
continue-on-error: true
- name: GitHub
uses: 'selfagency/slackfeedbot@dev'
with:
rss: 'https://www.githubstatus.com/history.rss'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
cache_dir: './slackfeedbot-cache'
continue-on-error: true
- name: Google Cloud
uses: 'selfagency/slackfeedbot@dev'
with:
rss: 'https://status.cloud.google.com/en/feed.atom'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
cache_dir: './slackfeedbot-cache'
continue-on-error: true
- name: Zoom
uses: 'selfagency/slackfeedbot@dev'
with:
rss: 'https://status.zoom.us/history.rss'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
cache_dir: './slackfeedbot-cache'
continue-on-error: true
- name: Linear
uses: 'selfagency/slackfeedbot@dev'
with:
rss: 'https://linearstatus.com/history.rss'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
cache_dir: './slackfeedbot-cache'
continue-on-error: true
- name: Stripe
uses: 'selfagency/slackfeedbot@dev'
with:
rss: 'https://status.stripe.com/current/atom.xml'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
cache_dir: './slackfeedbot-cache'
continue-on-error: true