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
Example of a simple "Hello World!" message in Slack
