Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Latest commit

 

History

History
14 lines (11 loc) · 561 Bytes

CUSTOM_PAYLOAD.md

File metadata and controls

14 lines (11 loc) · 561 Bytes

🚀 Slack for GitHub Actions - CUSTOM PAYLOAD

Custom payload allows interpolate hook data and event payload

Example

  env:
    SLACK_CUSTOM_PAYLOAD: '{"text":"Custom payload from {{ GITHUB_REPOSITORY }} \\n *with* `new` _line_ escaped","username": "{{ GITHUB_ACTOR }}"}'

IMPORTANT:

  • Escaped characters (like: line-breaks) needs to be escaped 2x:
    ex: \n becomes: \\n
  • Mind to send a quoted JSON string payload as the example above.
  • Using a custom payload will cause the other slack env vars data to be ignored.