Skip to content

kderholtvisma/slack-file-upload-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack file upload action

This action uploads file to slack

Inputs

token

Required Slack app token. See Internal app tokens

  • Create app
  • Add files:write permission
  • Install app to your workspase
  • Invite bot to required channels /invite <botname>
  • Use bot token from OAuth & Permissions page

path

Required Path to file

channel

Slack channel for upload

filename

Filename of file

filetype

A file type identifier.

initial_comment

The message text introducing the file in specified channels.

title

Title of file

Example usage

on: [push]

jobs:
  slack_upload_job:
    runs-on: ubuntu-latest
    name: Upload test file
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - run: echo "Test file " > test.txt
      - name: Upload to slack step
        uses: adrey/slack-file-upload-action@master
        with:
          token: ${{ secrets.SLACK_TOKEN }}
          path: test.txt
          channel: random

About

Github action for uploading files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Shell 0.6%