@@ -13,6 +13,7 @@ Post [GitHub Action](https://github.com/features/actions) deploy workflow progre
1313- Posts summary message at beginning of the deploy workflow, surfacing commit message and author
1414- Maps GitHub commit author to Slack user by full name, mentioning them in the summary message
1515- Threads intermediate stage completions, sending unexpected failures back to the channel
16+ - Adds summary message reaction to unsuccessful jobs (useful with [ Reacji Channeler] ( https://reacji-channeler.builtbyslack.com/ ) )
1617- Updates summary message duration at conclusion of the workflow
1718- Supports ` pull_request ` , ` push ` , ` release ` , ` schedule ` , and ` workflow_dispatch ` [ event types] ( https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows )
1819
@@ -22,6 +23,7 @@ Post [GitHub Action](https://github.com/features/actions) deploy workflow progre
22231 . Under ** OAuth & Permissions** , add two Bot Token Scopes:
2324 1 . [ ` chat:write ` ] ( https://api.slack.com/scopes/chat:write ) to post messages
2425 1 . [ ` chat:write.customize ` ] ( https://api.slack.com/scopes/chat:write.customize ) to customize messages with GitHub commit author
26+ 1 . [ ` reactions:write ` ] ( https://api.slack.com/scopes/reactions:write ) to add summary message error reactions
2527 1 . [ ` users:read ` ] ( https://api.slack.com/scopes/users:read ) to map GitHub user to Slack user
26281 . Install the app to your workspace
27291 . Copy the app's ** Bot User OAuth Token** from the ** OAuth & Permissions** page
3941 branches :
4042 - main
4143
42- # 1. Configure required environment variables
44+ # 1. Configure environment variables
4345env :
44- SLACK_DEPLOY_BOT_TOKEN : ${{ secrets.SLACK_DEPLOY_BOT_TOKEN }}
45- SLACK_DEPLOY_CHANNEL : ' C040YVCUDRR' # replace with your Slack Channel ID
46+ SLACK_DEPLOY_BOT_TOKEN : ${{ secrets.SLACK_DEPLOY_BOT_TOKEN }} # required
47+ SLACK_DEPLOY_CHANNEL : ' C040YVCUDRR' # required - replace with your Slack Channel ID
48+ SLACK_DEPLOY_ERROR_REACTION : ' x' # optional emoji name added as non-successful summary message reaction
4649
4750jobs :
4851 staging :
@@ -89,12 +92,11 @@ jobs:
8992
9093# # Environment Variables
9194
92- Both environment variables are _required_.
93-
94- | variable | description |
95- | ------------------------ | -------------------------- |
96- | `SLACK_DEPLOY_BOT_TOKEN` | Slack Bot User OAuth Token |
97- | `SLACK_DEPLOY_CHANNEL` | Slack Channel ID |
95+ | variable | description |
96+ | ----------------------------- | --------------------------------------- |
97+ | `SLACK_DEPLOY_BOT_TOKEN` | **Required** Slack bot user OAuth token |
98+ | `SLACK_DEPLOY_CHANNEL` | **Required** Slack channel ID |
99+ | `SLACK_DEPLOY_ERROR_REACTION` | Optional Slack emoji name |
98100
99101# # Inputs
100102
0 commit comments