rss-to-twitter #2039
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rss-to-twitter | |
on: | |
page_build | |
jobs: | |
twitter: | |
# if github.event.build.error.message is not null, it means that the build failed. Skip it | |
if: ${{ github.event.build.error.message == null }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: azu/rss-to-twitter@v1 | |
with: | |
RSS_URL: "https://realtime.jser.info/feed.xml" | |
TWEET_TEMPLATE: '"%title%" %url% → %desc%' | |
UPDATE_WITHIN_MINUTES: 15 # post items that are published within 15 minutes | |
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 }} |