Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
file

GitHub Action

Slack File Upload

1.0.0

Slack File Upload

file

Slack File Upload

Uploads file to slack

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Slack File Upload

uses: adrey/slack-file-upload-action@1.0.0

Learn more about this action in adrey/slack-file-upload-action

Choose a version

Slack file upload action

This action uploads file to slack

Inputs

token

Required Slack token

path

Required Path to file

channel

Slack channel for upload

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