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
Upload a file from within a Github Workflow to a Slack channel
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 |
"" |
name | description |
---|---|
result |
Upload file result from slack |
This action is a node20
action.
- 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: ""