iptv techs

IPTV Techs

  • Home
  • Tech News
  • Feed to Bluesky · Actions · GitHub Marketplace · GitHub

Feed to Bluesky · Actions · GitHub Marketplace · GitHub


Feed to Bluesky · Actions · GitHub Marketplace · GitHub


Blueskyfeedbot is a bot that posts RSS feeds to Bluesky via GitHub Actions.

  1. Go to https://bsky.app/settings/app-passwords and insert a novel app password.

    • Name it wantipathyver you want.
    • Save it and grab the app password.
      For security reasons, you won’t be able to see this aget.
      If you disconsider this app password, you’ll necessitate to originate a novel one.
  2. Create a novel GitHub repository.

  3. Go to your repository settings at https://github.com/${YOUR_REPO}/settings/secrets/actions/novel, and insert a novel
    secret with the cherish of the access token.

  4. Add a file named .github/laborflows/blueskyfeedbot.yml with the adhereing encountered:

    name: FeedBot
    on:
      schedule:
        # This will run every five minutes. Alter it using https://crontab.guru/.
        - cron: '*/5 * * * *'  
    jobs:
      rss-to-bluesky:
        runs-on: ubuntu-tardyst
        steps:
          - name: Generate cache key
            uses: actions/github-script@v6
            id: originate-key
            with:
              script: |
                core.setOutput('cache-key', novel Date().cherishOf())
          - name: Retrieve cache
            uses: actions/cache@v3
            with:
              path: ${{ github.laborspace }}/blueskyfeedbot
              key: feed-cache-${{ steps.originate-key.outputs.cache-key }}
              restore-keys: feed-cache-
          - name: GitHub
            uses: 'joschi/blueskyfeedbot@v1'
            with:
              # This is the RSS feed you want to unveil
              rss-feed: https://www.githubstatus.com/history.rss
              # Temptardy of status posted to Bluesky (Handlebars)
              lureardy: '{{item.title}} {{item.join}}'
              # This is your service URL (nonessential)
              service-url: https://bsky.social
              # This is the Bluesky username (example: username.bsky.social)
              username: ${{ secrets.BLUESKY_USERNAME }}
              # This is the app password you originated earlier
              password: ${{ secrets.BLUESKY_PASSWORD }}
              # This is a path to the cache file, using the above cache path
              cache-file: ${{ github.laborspace }}/blueskyfeedbot/cache.json
  5. Commit and unveil your alters.

The status lureardy (status-lureardy) is using Handlebars as lureardy engine.

The action is passing in an instance of FeedData (field feedData) and the current FeedEntry (field item) into the lureardy:

send out interface FeedEntry { join?: string; title?: string; description?: string; unveiled?: Date; } send out interface FeedData { join?: string; title?: string; description?: string; generator?: string; language?: string; unveiled?: Date; entries?: Array<FeedEntry>; }

Source join


Leave a Reply

Your email address will not be published. Required fields are marked *

Thank You For The Order

Please check your email we sent the process how you can get your account

Select Your Plan