Skip to content

A GitHub Action that uploads a file to Discord channel.

License

Notifications You must be signed in to change notification settings

nocturlab/upload-to-discord

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload to Discord

Usage

on: push
name: Main workflow
jobs:
  github-action:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Send file README.md to discord channel
      uses: nocturlab/upload-to-discord@master
      env:
        DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
      with:
        args: README.md

Requirements

You must pass at least one argument, the path to the file you want to attach. You must also include the DISCORD_WEBHOOK secret, otherwise uploading the file will not work.

    - name: Send file README.md to discord channel
      uses: nocturlab/upload-to-discord@master
      env:
        DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
      with:
        args: README.md

About

A GitHub Action that uploads a file to Discord channel.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 35.8%
  • HCL 35.5%
  • Dockerfile 28.7%