Skip to content

TypeScript action based on OSCloudysky/UniNotify@v1

License

Notifications You must be signed in to change notification settings

AngelVDev/DisSLackNoti

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

DisSLackNoti

A project made to send Discord and Slack notifications from your repo's actions.

  • You must specify your Slack or Discord token in your Repo secrets, and also a Slack channel.
  • This is template to use:
name: 'Send Notifications'
on:
  pull_request:
  push:
    branches:
      - main
  workflow_dispatch:
  
jobs:
  notify:
    runs-on: ubuntu-latest
    steps:
    - name: Send Notification to slack
      uses: AngelVDev/[email protected]
      with:
        githubToken: ${{ secrets.YOUR_GITHUB_TOKEN }}
        messageType: 'slack' 
        slackToken: ${{ secrets.YOUR_SLACK_API_TOKEN }}
        slackChannel: ${{ secrets.YOUR_SLACK_CHANNEL}}

    - name: Send notification to Discord
      uses: AngelVDev/[email protected]
      if: always()
      with:
        githubToken: ${{ secrets.YOUR_GITHUB_TOKEN }}
        messageType: 'discord'
        discordWebhookUrl: ${{ secrets.YOUR_DISCORD_WEBHOOK_URL }}

About

TypeScript action based on OSCloudysky/UniNotify@v1

Resources

License

Stars

Watchers

Forks

Packages

No packages published