{"id":28499085,"url":"https://github.com/includable/action-slack-notify","last_synced_at":"2025-10-13T12:15:15.238Z","repository":{"id":297656018,"uuid":"997488630","full_name":"includable/action-slack-notify","owner":"includable","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-06T16:19:46.000Z","size":277,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-30T05:46:57.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/includable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"tschoffelen"}},"created_at":"2025-06-06T16:00:38.000Z","updated_at":"2025-06-06T16:19:20.000Z","dependencies_parsed_at":"2025-06-06T17:39:03.452Z","dependency_job_id":null,"html_url":"https://github.com/includable/action-slack-notify","commit_stats":null,"previous_names":["includable/action-slack-notify"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/includable/action-slack-notify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/includable%2Faction-slack-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/includable%2Faction-slack-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/includable%2Faction-slack-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/includable%2Faction-slack-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/includable","download_url":"https://codeload.github.com/includable/action-slack-notify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/includable%2Faction-slack-notify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015044,"owners_count":26085643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-08T14:30:36.997Z","updated_at":"2025-10-13T12:15:15.213Z","avatar_url":"https://github.com/includable.png","language":"JavaScript","readme":"# Action: Slack notify\n\nThis action prints your GitHub Action build status to Slack. It takes an opinionated approach by showing attachments for metadata like branch, pull request, and event.\n\nIt is based on [voxmedia/github-action-slack-notify-build](https://github.com/voxmedia/github-action-slack-notify-build), but modified to use incoming webhooks instead of Bot Tokens.\n\n## Usage\n\n```yaml\nuses: includable/action-slack-notify@v1\nwith:\n  webhook_url: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK_URL }}\n  channel: app-alerts\n  status: STARTED\n  color: good\n```\n\nThe Slack notification leverages attachments to group important information together and provide valuable links:\n\n\u003cimg src=\"docs/push.png\" alt=\"Screenshot of the push event\" width=\"540\"\u003e\n\nWhen used with the `pull_request` event, a link to the originating pull request is included:\n\n\u003cimg src=\"docs/pr.png\" alt=\"Screenshot of the pull_request event\" width=\"540\"\u003e\n\n### Reporting Success or Failure\n\nYou can use the `success()` and `failure()` conditional checks within your workflow to determine which build notification to send:\n\n```yaml\n- name: Run tests\n  # ... your test step here\n- name: Notify slack success\n  if: success()\n  uses: includable/action-slack-notify@v1\n  with:\n    webhook_url: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK_URL }}\n    channel: app-alerts\n    status: SUCCESS\n    color: good\n\n- name: Notify slack fail\n  if: failure()\n  uses: includable/action-slack-notify@v1\n  with:\n    webhook_url: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK_URL }}\n    channel: app-alerts\n    status: FAILED\n    color: danger\n```\n\n## Inputs\n\n### `status`\n\n**Required** The status to show for the action, e.g. `STARTED` or `FAILED`.\n\n### `webhook_url`\n\nThe incoming webhook URL to post the message to. **Required**. You can find this in your Slack app settings under \"Incoming Webhooks\". It should look like `https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX`.\n\n### `color`\n\nThe color to use for the notification. Can be a hex value or any [valid Slack color level](https://api.slack.com/reference/messaging/attachments#fields) (e.g. `good`). Defaults to `#cccccc`.\n","funding_links":["https://github.com/sponsors/tschoffelen"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincludable%2Faction-slack-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fincludable%2Faction-slack-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincludable%2Faction-slack-notify/lists"}