โ†ฉ๏ธ Reply to:
https://journal.robbi.my/notes/231018054658/

๐Ÿ“… | โฐ 1 minutes

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 :

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!

[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!

Posted by: Robbi Nespu

Edit

Have some thoughts, discussion or feedback on this post?

๐Ÿ’ฌย Send me an email

What is webmention? How to send interactions!

Below you can find all of webmention with this page. Which means, you also can mentioned this URL on any website that support WebMention. Have you written a response to this post? Let me know the URL:

Do you use a website that don't have WebMention capabilities? You can just use Comment Parade!