Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

hamza-louis/slack-upload-file-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: ""

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published