Prepare a specific step in order to use the Slack Message script :
- name: Prepare and send Slack message
run: |-
curl -s https://raw.githubusercontent.com/hipay/common-workflows/main/scripts/slack-message.js | node
In order to use this script, you should delcare some environment variables in your GitHub step :
GITHUB_PROJECT_NAME
: the GitHub project nameGITHUB_RELEASE_TAG
: the GitHub tag of the current releaseGITHUB_RELEASE_URL
: the GitHub release URLSLACK_CHANNEL_ID
: a Slack channel IDSLACK_API_TOKEN
: a Slack API token in order to use Slack APIs. Declare it as a secret GitHub variableJIRA_DOMAIN
: the domain of your JIRA platform
This script also requires artifacts (as a JSON format) of your JIRA tickets used for the current release.