voxmedia / github-action-slack-notify-build

Report GitHub Actions build status on Slack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update setup instructions

LinqLover opened this issue · comments

There appear to have been some recent changes to Slack API, however, the "Bot users" page mentioned in the setup instructions does not exist any longer. Still, I managed to create a bot, but when running the action, it says "Slack channel <my_channel> could not be found".

Could you maybe provide an up-to-date description of how to set up the bot & how to retrieve the right token? :)

Any update for this? I got the same problem, no "Bot users" now, could we support the webhook url?

Hi @zhangcz828, I was able to get Slack notifications working using this action instead: https://github.com/marketplace/actions/slack-notify

The instructions are outdated for the Slack bot token configuration.

  • In the Slack API console, you need to create a new application.
  • You need to set permissions as per the document where I gave it chat:write channels:read and groups:read (as I used the channel/group name not ID). On the permissions page, ensure that you copy the Bot User OAuth token for later use. This will be used in Github actions. There are app-level tokens you can create, but it doesn't seem to work.
  • Install to your workspace.
  • Set the display information - choose a name, description, icon, background colour.
  • In your desired channel, invite the new App. Type /invite and choose Add apps to the channel.