Skip to content

Slack Upload File Action

Actions
Upload a file from within a Github Workflow to a Slack channel
v1.0.2
Latest
Star (2)

Slack Upload File Github Action

This action can be used to upload a file to a specific Slack channel, this action utilizing the new version of files.upload Slack API documented here -> https://api.slack.com/messaging/files#uploading_files

Description

Upload a file from within a Github Workflow to a Slack channel

Inputs

name description required default
slack_file_path

Path to the file to upload

true ""
slack_app_token

Slack token to be used to auth

true ""
slack_channel_id

Target Slack channel ID

true ""
slack_file_upload_initial_comment

A text to be added to the message

true ""
slack_file_upload_filename

The filename with a the proper file extension

true ""

Outputs

name description
result

Upload file result from slack

Runs

This action is a node20 action.

Usage

- uses: <project>@<version>
  with:
    slack_file_path:
    # Path to the file to upload
    #
    # Required: true
    # Default: ""

    slack_app_token:
    # Slack token to be used to auth
    #
    # Required: true
    # Default: ""

    slack_channel_id:
    # Target Slack channel ID
    #
    # Required: true
    # Default: ""

    slack_file_upload_initial_comment:
    # A text to be added to the message
    #
    # Required: true
    # Default: ""

    slack_file_upload_filename:
    # The filename with a the proper file extension
    #
    # Required: true
    # Default: ""

Slack Upload File Action 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.

About

Upload a file from within a Github Workflow to a Slack channel
v1.0.2
Latest

Slack Upload File Action 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.