Sourced from slackapi/slack-github-action's releases.
Slack Send V1.27.0
What's changed
This release introduces an optional
payload-delimiter
parameter for flattening nested objects with a customized delimiter before the payload is sent to Slack Workflow Builder when using workflow webhook triggers.- name: Send a custom flattened payload uses: slackapi/slack-github-action@v1.27.0 + with: + payload-delimiter: "_" env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Setting this value to an underscore (
_
) is recommended when using nested inputs within Workflow Builder to match expected input formats of Workflow Builder, but the actual value can be changed to something else! This "flattening" behavior did exist prior to this version, but used a period (.
) which is not valid for webook inputs in Workflow Builder.The resulting output of flattened objects is not always clear, but the following can hopefully serve as a quick reference as well as these specs when using
_
as the delimiter:Input:
{ "apples": "tree", "bananas": { "truthiness": true } }
Output:
{ "apples": "tree", "bananas_truthiness": "true" }
Notice that
bananas_truthiness
is also stringified in this process, as part of updating values to match the expected inputs of Workflow Builder!Changes
In addition to the changes above, the following lists all of the changes since the prior version with the complete changelog changes found here: https://github.com/slackapi/slack-github-action/compare/v1.26.0...v1.27.0
🎁 Enhancements
... (truncated)
37ebaef
Automatic compilation5d1fb07
chore(release): tag version 1.27.03bc0671
chore(deps): bump axios to 1.7.5 (#332)b452451
feat: make the payload delimiter configurable for workflow webhook
triggers (...c50e848
build(deps-dev): bump mocha from 10.5.2 to 10.7.0 (#328)e4a9c4b
build(deps): bump @slack/web-api
from 7.2.0 to 7.3.2 (#327)9a7f0fa
build(deps-dev): bump chai from 4.4.1 to 4.5.0 (#326)73b7062
build(deps-dev): bump eslint-plugin-jsdoc from 48.5.0 to 48.10.2 (#325)3d5207b
build(deps): bump https-proxy-agent from 7.0.4 to 7.0.5 (#320)4e15b6a
build(deps): bump @slack/web-api
from 7.0.4 to 7.2.0 (#323)