DEV Community

Cover image for Follow your repository from Discord
Thomas Bnt Subscriber for Mr. Robøt

Posted on • Edited on

9 5

Follow your repository from Discord

My Workflow

This Action is used for write at every push the progress to a project and/or updates. It's only for Discord users and work with Webhooks and secrets tokens on GitHub.

I modified this script for showing to users who follow my project to stay updated for the new version. 😁

This is a preview.

Submission Category: Maintainer Must-Haves

Setup

Really simple, you must have :

  • Discord Webhook URL
  • A active repository on GitHub
  • Integrate this script to your GitHub repository
name: Discord Webhook
on: [push]
jobs:
  Discord_notification:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Run Discord Webhook
        uses: mrrobotdotapp/classic-discord-webhook@main
        with:
          id: ${{ secrets.DISCORD_WEBHOOK_ID }}
          token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
          #threadId: ${{ secrets.DISCORD_WEBHOOK_THREAD_ID }} # Optional
Enter fullscreen mode Exit fullscreen mode

How to get a Wehbook link on Discord ?

In this video, I selected two IDs. The first is DISCORD_WEBHOOK_ID and the second is DISCORD_WEBHOOK_TOKEN

And how to put my ID and secret token in my GitHub repository ?

Additional Resources / Info

Check out now the repository.

GitHub logo mrrobotdotapp / classic-discord-webhook

This GitHub Action can produce fancy and more meaningful discord messages for your commits.

If you have questions, don't hesitate !

Check my Twitter account. You can see many projects and updates. You can also support me on Buy Me a Coffee, Stripe or GitHub Sponsors. Thanks for read my post ! 🤩

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (6)

Collapse
 
vyvyvi profile image
Vyvy-vi (Vyom Jain) • Edited

nice... but didn't you fork this from Slimefun/discord-webhook and remove the semicolons...
I would have cut you some slack, if you really made some edits to the action.. but why not just link and use github.com/Slimefun/discord-webhook/

Collapse
 
thomasbnt profile image
Thomas Bnt

Because I made some text and rendering changes. And there's no test coverage for the java part of it.

Read a little bit the README and the source code to learn more about it. 😄☕

Collapse
 
omarkhatib profile image
Omar

I really like the Idea!

Collapse
 
thomasbnt profile image
Thomas Bnt

Thanks! 🙌🏼

Collapse
 
pbouillon profile image
Pierre Bouillon

That's awesome ! This an integration I felt was missing, well done !

Collapse
 
thomasbnt profile image
Thomas Bnt

Thanks!

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay