This release migrates the action to Node 24, refactors the codebase to ESM, and adds Slack Bot Token auth, workflow_run event support, and several new inputs. There are no breaking changes in this release.
Highlights
- New
slack_bot_tokeninput for posting via the Slack Web API instead of an Incoming Webhook. When set,channelis required and accepts a name (#release), channel ID, or user ID for DMs. Falls back to theSLACK_BOT_TOKENenv var. Resolves #40. - New
workflow_runinput — set to'true'when the action runs in a workflow triggered by theworkflow_runevent, to report on the upstream workflow rather than the current one. Based on community work by @swfz in #47 and @ashenm in #62, re-applied due to merge conflicts. - Workflow name is now hyperlinked to its branch-filtered run history. Based on community work by @sjohnr in #59, re-applied due to merge conflicts.
- New
hide_job_statusesinput — comma-separated list of job conclusions to omit from the rendered job list (e.g."skipped,cancelled"). The overall workflow color still reflects all jobs. Resolves #55. - New
extra_textinput for free-form content appended to the notification body — deploy URLs, ticket links, channel mentions, etc. Resolves #42.
Internal
- Refactor to ESM, broken into focused modules (
src/index.ts,inputs.ts,format.ts,slack.ts). - Test suite added with Vitest (58 tests).
Migrating from v1
Most workflows need no changes. To switch to bot-token auth:
- uses: Gamesight/slack-workflow-status@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }}
channel: '#deploys'Pin to @v2 to track the latest 2.x, or @v2.0.0 for an immutable pin.
Contributors
Thanks to the contributors whose code is included in this release:
Thanks also to the issue reporters whose reports drove fixes in this release: @dalehenrich (#21), @sammcj (#40), @akramfstg (#42), @xcfw (#45), @TalhaNaeem101 (#55), @BarelElbazDeveleap (#58).
Full Changelog: v1.3.0...v2.0.0