generated from welpo/tabi-start
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.11 KB
/
MastoRSSbot.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
name: FeedBot
on:
workflow_run:
workflows: ["Build and Publish to AWS"]
branches: [main]
types:
- completed
jobs:
rss-to-mastodon:
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@v3
with:
path: ${{ github.workspace }}/MastoRSSbot
key: feed-cache-${{ steps.generate-key.outputs.cache-key }}
restore-keys: feed-cache-
- name: GitHub
uses: 'rich-howell/mastofeedbot@v1'
with:
# This is the RSS feed you want to publish
rss-feed: https://nizzlay.com/atom.xml
# This is your instance address
api-endpoint: https://indieweb.social
# This is the secret you created earlier
api-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
# This is a path to the cache file, using the above cache path
cache-file: ${{ github.workspace }}/MastoRSSbot/cache.json