Skip to content

Slack Send V1.26.0

Latest
Compare
Choose a tag to compare
@zimeg zimeg released this 19 Apr 00:52
· 11 commits to main since this release
70cd7be

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/slack-github-action@v1.26.0
  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

  • allow to use json file as is without replacing/parsing anything by @talgendler in #299

Documentation

  • docs(readme): adjust whitespace in env assignment by @paulo9mv in #296

Maintenance

  • ci(test): collect environment secrets from a prepared staging environment by @zimeg in #294
  • ci(test): share environment secrets with pull requests from forked prs by @zimeg in #297

Dependencies

New Contributors

Full Changelog: v1.25.0...v1.26.0