JOURNAL.ROBBI.MY
← Back to IndieWeb
reply

Reply to: https://journal.robbi.my/notes/231018054658/

https://journal.robbi.my/notes/231018054658/ ↗

I just noticed that the webmention.app website is serving and running using a JavaScript package, and it’s open source. You can find the source code on GitHub by Remy. This means that even if the webmention.app host is down, you can still use the service by hosting it yourself or using the CLI.

Hosting the service was never an option for me, so I decided to use the CLI to replace my current GitHub action jobs. Here’s the modified workflow:

yaml
name: Send webmentions for new blog posts
on:
  rss:
    url: https://journal.robbi.my/index.xml
    config:
      logLevel: debug
      limit: 1
jobs:
  send_webmentions:
    name: Send webmentions
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/main'
    steps:
    
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Install webmention
        run: npm i -g @remy/webmention

      - name: Send webmentions
        run: webmention "${{on.rss.outputs.link}}" --send --debug

And it worked like a charm!

text
[Send webmentions for new blog posts/Send webmentions 0] ⭐  Run Send webmentions
[Send webmentions for new blog posts/Send webmentions 0]   | limit = 10
[Send webmentions for new blog posts/Send webmentions 0]   | send = true
[Send webmentions for new blog posts/Send webmentions 0]   | Fetching https://journal.robbi.my/notes/231024091253/
[Send webmentions for new blog posts/Send webmentions 0]   | Content has microformats
[Send webmentions for new blog posts/Send webmentions 0]   | entries = 1
[Send webmentions for new blog posts/Send webmentions 0]   | mentions = 1
[Send webmentions for new blog posts/Send webmentions 0]   | URLs to check: 1
[Send webmentions for new blog posts/Send webmentions 0]   | endpoints = 1
[Send webmentions for new blog posts/Send webmentions 0]   | endpoints-resolved = 1 {"source":"https://qiita.com/manabu-s/items/2f7f10752bcf44244718"}
[Send webmentions for new blog posts/Send webmentions 0]   | start send
[Send webmentions for new blog posts/Send webmentions 0]   ✅  Success - Send webmentions

Now, you are using the CLI to send webmentions for new blog posts, and it’s working smoothly!

Have some thoughts, discussion or feedback on this post?

▸ What is webmention? How to send interactions!
Below you can find all of webmention with this page. You can also mention this URL on any website that supports WebMention. Have you written a response to this post? Let me know the URL:

Don't have WebMention? Use Comment Parade!

No webmentions yet.

Comments section coming soon. For now, send a webmention or email.