slack-github-action

Send data into Slack using this GitHub Action!

MIT License

Stars
806
Committers
36

Bot releases are hidden (Show)

slack-github-action - Slack Send V1.27.0 Latest Release

Published by zimeg about 2 months ago

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/[email protected]
+   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

๐Ÿ“š Documentation

๐Ÿ”’ Security

๐Ÿงช Maintenance

๐Ÿ“ฆ Dependencies

๐ŸŽ‰ New contributors

slack-github-action - Slack Send V1.26.0

Published by zimeg 6 months ago

What's Changed

This release provides an escape hatch for sending the JSON content of a payload file exactly as is, without replacing any templated variables!

Previously a payload file was parsed and templated variables were replaced with values from github.context and github.env. Any undefined variables were replaced with ??? in this process, which might have caused questions.

That remains the default behavior, but now the JSON contents of a payload file can be sent exactly as written by setting the payload-file-path-parsed input to false:

- name: Send custom JSON data to Slack workflow
  id: slack
  uses: slackapi/[email protected]
  with:
    payload-file-path: "./payload-slack-content.json"
    payload-file-path-parsed: false
  env:
    SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

With this change, the contents of the example payload-slack-content.json will be sent to a webhook URL exactly as is!

Recent commits

Enhancements

Documentation

Maintenance

Dependencies

New Contributors

Full Changelog: https://github.com/slackapi/slack-github-action/compare/v1.25.0...v1.26.0

slack-github-action - Slack Send V1.25.0

Published by filmaj 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/slackapi/slack-github-action/compare/v1.24.0...v1.25.0

slack-github-action - Slack Send V1.24.0

Published by zimeg over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/slackapi/slack-github-action/compare/v1.23.0...v1.24.0

slack-github-action - Slack Send V1.23.0

Published by hello-ashleyintech about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/slackapi/slack-github-action/compare/v1.22.0...v1.23.0

slack-github-action - Slack Send V1.22.0

Published by filmaj about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/slackapi/slack-github-action/compare/v1.21.0...v1.22.0

slack-github-action - Slack Send V1.21.0

Published by stevengill about 2 years ago

What's Changed

Full Changelog: https://github.com/slackapi/slack-github-action/compare/v1.20.0...v1.21.0

slack-github-action - Slack Send v1.20.0

Published by stevengill about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/slackapi/slack-github-action/compare/v1.19.0...v1.20.0

slack-github-action - Slack Send V1.19.0

Published by stevengill over 2 years ago

What's Changed

Full Changelog: https://github.com/slackapi/slack-github-action/compare/v1.18.0...v1.19.0

slack-github-action - Slack Send v1.18.0

Published by stevengill over 2 years ago

slack-github-action - Slack Send v1.17.0

Published by stevengill almost 3 years ago

What's Changed

Full Changelog: https://github.com/slackapi/slack-github-action/compare/v1.16.0...v1.17.0

slack-github-action - Slack Send v1.16.0

Published by stevengill almost 3 years ago

slack-github-action - Slack Send 1.15.0

Published by stevengill over 3 years ago

This is the first public release of the new Slack Send GitHub Action!

This action supports sending messages to channels and also sending JSON data to the Slack Workflow Builder.

Package Rankings
Top 0.34% on Github actions
Top 6.73% on Proxy.golang.org
Badges
Extracted from project README
codecov