{"id":13533161,"url":"https://github.com/appleboy/discord-action","last_synced_at":"2025-04-04T17:05:54.650Z","repository":{"id":65155336,"uuid":"172283222","full_name":"appleboy/discord-action","owner":"appleboy","description":"GitHub Action that sends a Discord message.","archived":false,"fork":false,"pushed_at":"2024-10-08T15:26:15.000Z","size":108,"stargazers_count":98,"open_issues_count":4,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T10:07:29.133Z","etag":null,"topics":["discord","discord-bot","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/discord-message-notify","language":"Dockerfile","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/appleboy.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}},"created_at":"2019-02-24T01:28:22.000Z","updated_at":"2024-10-08T15:26:08.000Z","dependencies_parsed_at":"2024-11-08T22:02:35.228Z","dependency_job_id":"b08bc5e2-d8c8-43b8-9210-1902a49b8911","html_url":"https://github.com/appleboy/discord-action","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":"0.032258064516129004","last_synced_commit":"65ebc423aafb4ac20894ec0cb1042fb2bdab5e0d"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdiscord-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdiscord-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdiscord-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdiscord-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/discord-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217175,"owners_count":20903008,"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","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":["discord","discord-bot","github-actions"],"created_at":"2024-08-01T07:01:17.117Z","updated_at":"2025-04-04T17:05:54.626Z","avatar_url":"https://github.com/appleboy.png","language":"Dockerfile","funding_links":[],"categories":["Community Resources"],"sub_categories":["Notifications and Messages"],"readme":"# 🚀 Discord for GitHub Actions\n\nEnglish | [繁體中文](./README.zh-tw.md) | [简体中文](./README.zh-cn.md)\n\n[GitHub Action](https://developer.github.com/actions/) for sending a [Discord](https://discordapp.com/) notification message.\n\n[![Actions Status](https://github.com/appleboy/discord-action/workflows/discord%20message/badge.svg)](https://github.com/appleboy/discord-action/actions)\n\n![message](./images/message.png)\n\n**Important**: Only supports **Linux** [Docker](https://www.docker.com/) containers.\n\n## Features\n\n- [x] Send Multiple Messages\n- [x] Send Multiple Files\n\n## Usage\n\nSend a custom message as shown below:\n\n```yaml\nname: discord message\non: [push]\njobs:\n  build:\n    name: Build\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - name: send custom message\n        uses: appleboy/discord-action@v1.2.0\n        with:\n          webhook_url: ${{ secrets.WEBHOOK_URL }}\n          message: The ${{ github.event_name }} event triggered first step.\n```\n\n## Input variables\n\n- webhook_url: Webhook URL of the channel.\n- webhook_id: Webhook ID of the channel.\n- webhook_token: Webhook token of the channel.\n- username: (Optional) Override the default username of the webhook.\n- avatar_url: (Optional) Override the default avatar of the webhook.\n- color: (Optional) Color code of the embed.\n- file: (Optional) Send a file message.\n- debug: (Optional) Enable debug mode.\n\n## Example\n\nSend a custom message using `webhook_url`:\n\n```yaml\n- name: send message\n  uses: appleboy/discord-action@v1.2.0\n  with:\n    webhook_url: ${{ secrets.WEBHOOK_URL }}\n    message: The ${{ github.event_name }} event triggered first step.\n```\n\nSend the default message:\n\n```yaml\n- name: send message\n  uses: appleboy/discord-action@v1.2.0\n  with:\n    webhook_url: ${{ secrets.WEBHOOK_URL }}\n```\n\nSend the message with a custom color and username:\n\n```yaml\n- name: send message\n  uses: appleboy/discord-action@v1.2.0\n  with:\n    webhook_id: ${{ secrets.WEBHOOK_ID }}\n    webhook_token: ${{ secrets.WEBHOOK_TOKEN }}\n    color: \"#48f442\"\n    username: \"GitHub Bot\"\n    message: \"A new commit has been pushed with custom color.\"\n```\n\nSend multiple files:\n\n```yaml\n- name: send message\n  uses: appleboy/discord-action@v1.2.0\n  with:\n    webhook_id: ${{ secrets.WEBHOOK_ID }}\n    webhook_token: ${{ secrets.WEBHOOK_TOKEN }}\n    file: \"./images/message.png\"\n    message: \"Send Multiple File.\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdiscord-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fdiscord-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdiscord-action/lists"}