.github/.github/workflows/docs/send_slack_message.md at main ยท ZeroGachis/.github

Latest commit

Slack Message Workflow

This workflow provides a simplified interface for sending messages to Slack channels, building upon the Slack Notification workflow with a more focused set of inputs.

Usage

jobs:
  notify:
    uses: ZeroGachis/.github/.github/workflows/send_slack_message.yaml@v4
    with:
      channel_id: "C0123456789"
      message: "Deployment completed successfully!"
      environment_name: production
    secrets: inherit

Inputs

Required Inputs

Input Description
channel_id Slack channel ID to send the message to
message Message content to send
environment_name Target environment for Vault configuration

Optional Inputs

Input Default Description
vault_url - Vault server URL
vault_github_actions_role - Role to use for Vault authentication

Features

  • ๐Ÿ’ฌ Simple message sending interface
  • ๐Ÿ”’ Secure credential management
  • ๐Ÿ”‘ HashiCorp Vault integration
  • ๐ŸŒ Environment-specific configuration
  • ๐Ÿ“ Markdown message formatting support

Example Usage

Basic Message

jobs:
  notify:
    uses: ZeroGachis/.github/.github/workflows/send_slack_message.yaml@v4
    with:
      channel_id: "C0123456789"
      message: "Build completed successfully!"
      environment_name: staging
    secrets: inherit

Message Example

Simple Slack message example

Example of a simple "Hello World!" message in Slack