SLACK_INTEGRATION

name: "input_Slack"
inputs:
 slack_field:
   type: SLACK_INTEGRATION
   name: "Slack Integration"
   default: "slack_integration_hash"
execute_commands:
 - echo $SLACK_TOKEN
docker_image_name: "library/ubuntu"
docker_image_tag: "latest"

The SLACK_INTEGRATION parameter adds an input that lets you select the Slack integration and use it in the action. The action also generates $SLACK_TOKEN that can be used in the pipeline.

Custom action with Slack inputCustom action with Slack input

Custom action logsCustom action logs

Tip
Adding default with the integration hash will automatically set the integration in the input.
Last update:
Aug 6, 2024