-
Notifications
You must be signed in to change notification settings - Fork 38
34 lines (32 loc) · 1.28 KB
/
rss-to-twitter.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: rss-to-twitter
on:
schedule:
# everyday at 01:00 UTC (10:00 JST)
- cron: '0 1 * * *'
jobs:
twitter:
runs-on: ubuntu-latest
steps:
- uses: azu/rss-to-twitter@v2
with:
# RSS feed URL
RSS_URL: "https://utelecon.adm.u-tokyo.ac.jp/notice/rss.xml"
# UPDATE_WITHIN_MINUTES is calculated from cron schedule to be 1 day
TWEET_TEMPLATE: '%title% %url%'
TWITTER_APIKEY: ${{ secrets.TWITTER_APIKEY }}
TWITTER_APIKEY_SECRET: ${{ secrets.TWITTER_APIKEY_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
twitter-en:
runs-on: ubuntu-latest
steps:
- uses: azu/rss-to-twitter@v2
with:
# RSS feed URL
RSS_URL: "https://utelecon.adm.u-tokyo.ac.jp/en/notice/rss.xml"
# UPDATE_WITHIN_MINUTES is calculated from cron schedule to be 1 day
TWEET_TEMPLATE: '%title% %url%'
TWITTER_APIKEY: ${{ secrets.TWITTER_EN_APIKEY }}
TWITTER_APIKEY_SECRET: ${{ secrets.TWITTER_EN_APIKEY_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_EN_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_EN_ACCESS_TOKEN_SECRET }}