This action uploads file to slack
Required Slack app token. See Internal app tokens
- Create app
- Add
files:writepermission - Install app to your workspase
- Invite bot to required channels
/invite <botname> - Use bot token from
OAuth & Permissionspage
Required Path to file
Slack channel for upload
Filename of file
A file type identifier.
The message text introducing the file in specified channels.
Title of file
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
Slack File Upload is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.