Sourced from slackapi/slack-github-action's releases.
Slack Send V1.26.0
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
andgithub.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 tofalse
:- 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 slackapi/slack-github-action#299Documentation
- docs(readme): adjust whitespace in env assignment by
@paulo9mv
in slackapi/slack-github-action#296Maintenance
- ci(test): collect environment secrets from a prepared staging environment by
@zimeg
in slackapi/slack-github-action#294- ci(test): share environment secrets with pull requests from forked prs by
@zimeg
in slackapi/slack-github-action#297Dependencies
- Bump eslint-plugin-jsdoc from 46.10.1 to 48.2.1 by
@dependabot
in slackapi/slack-github-action#295- Bump eslint from 8.56.0 to 8.57.0 by
@dependabot
in slackapi/slack-github-action#289- Bump mocha from 10.2.0 to 10.3.0 by
@dependabot
in slackapi/slack-github-action#288- Bump https-proxy-agent from 7.0.2 to 7.0.4 by
@dependabot
in slackapi/slack-github-action#290- Bump
@slack/web-api
from 6.12.0 to 7.0.2 by@dependabot
in slackapi/slack-github-action#287- Bump mocha from 10.3.0 to 10.4.0 by
@dependabot
in slackapi/slack-github-action#300- Bump axios from 1.6.7 to 1.6.8 by
@dependabot
in slackapi/slack-github-action#301- Bump eslint-plugin-jsdoc from 48.2.1 to 48.2.2 by
@dependabot
in slackapi/slack-github-action#302New Contributors
... (truncated)
70cd7be
Automatic compilation53b162f
chore(release): tag release v1.26.047d8e42
feat: introduce an option to send payload file json without replacing
variabl...d447374
Bump eslint-plugin-jsdoc from 48.2.1 to 48.2.2 (#302)b638b31
Bump axios from 1.6.7 to 1.6.8 (#301)c76311a
Bump mocha from 10.3.0 to 10.4.0 (#300)d4358d2
docs(readme): adjust whitespace in env assignment (#296)cb3763e
ci(test): share environment secrets with pull requests from forked prs
(#297)86bebf8
Bump @slack/web-api
from 6.12.0 to 7.0.2 (#287)efa31bf
Bump https-proxy-agent from 7.0.2 to 7.0.4 (#290)