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
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
- Bump eslint-plugin-jsdoc from 46.10.1 to 48.2.1 by @dependabot in #295
- Bump eslint from 8.56.0 to 8.57.0 by @dependabot in #289
- Bump mocha from 10.2.0 to 10.3.0 by @dependabot in #288
- Bump https-proxy-agent from 7.0.2 to 7.0.4 by @dependabot in #290
- Bump @slack/web-api from 6.12.0 to 7.0.2 by @dependabot in #287
- Bump mocha from 10.3.0 to 10.4.0 by @dependabot in #300
- Bump axios from 1.6.7 to 1.6.8 by @dependabot in #301
- Bump eslint-plugin-jsdoc from 48.2.1 to 48.2.2 by @dependabot in #302
New Contributors
- @paulo9mv made their first contribution in #296
- @talgendler made their first contribution in #299
Full Changelog: v1.25.0...v1.26.0