{"id":44542756,"url":"https://github.com/mod-posh/post2discord","last_synced_at":"2026-02-13T19:04:02.425Z","repository":{"id":219315382,"uuid":"741201201","full_name":"mod-posh/Post2Discord","owner":"mod-posh","description":"A simple GitHub Workflow to send a notification to a Discord Channel","archived":false,"fork":false,"pushed_at":"2025-01-21T20:58:08.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T21:33:48.720Z","etag":null,"topics":["github-action","powershell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mod-posh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2024-01-09T22:49:27.000Z","updated_at":"2025-01-21T20:57:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"50ade043-b7a0-4933-b3b6-9adcc03f0590","html_url":"https://github.com/mod-posh/Post2Discord","commit_stats":null,"previous_names":["mod-posh/post2discord"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mod-posh/Post2Discord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mod-posh%2FPost2Discord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mod-posh%2FPost2Discord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mod-posh%2FPost2Discord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mod-posh%2FPost2Discord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mod-posh","download_url":"https://codeload.github.com/mod-posh/Post2Discord/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mod-posh%2FPost2Discord/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29414382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["github-action","powershell"],"created_at":"2026-02-13T19:03:14.175Z","updated_at":"2026-02-13T19:04:02.418Z","avatar_url":"https://github.com/mod-posh.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Post to Discord GitHub Action\n\nThis repository contains a GitHub Action (`post2discord.yml`) and a PowerShell script (`post2discord.ps1`) that sends notifications to a Discord channel. The message to be posted is provided as input to the action, making it flexible for various use cases.\n\n## Features\n\n- Accepts a custom message to post to Discord, allowing for flexible notifications.\n- Sends the provided message to a specified Discord channel via webhook.\n\n## Usage\n\n### Workflow Setup\n\nThe `post2discord.yml` is a reusable GitHub Actions workflow that allows you to trigger it via `workflow_call` from other workflows in your repository.\n\n#### Inputs\n\n- `message`: The custom message to post to Discord.\n\n#### Secrets\n\n- `discordWebhook`: The webhook URL for the Discord channel to send notifications to.\n\n### PowerShell Script\n\nThe `post2discord.ps1` PowerShell script sends the provided message to Discord via the webhook URL.\n\n#### Parameters\n\n- `Message`: The custom message to post to Discord.\n- `DiscordWebhook`: The Discord webhook URL.\n\n### Example Workflow Call\n\n```yaml\nname: Post to Discord Example\n\non:\n  push:\n\njobs:\n  notify:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Notify Discord\n        uses: mod-posh/Post2Discord@v0.0.3.0\n        with:\n          message: 'A new update has been released!'\n          discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}\n```\n\n### Passing a Dynamic Message\n\nYou can dynamically construct the message in your calling workflow using GitHub environment variables or other inputs:\n\n```yaml\nname: Post to Discord Dynamic Example\n\non:\n  push:\n\njobs:\n  notify:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Notify Discord\n        uses: mod-posh/Post2Discord@v1\n        with:\n          message: |\n            🚀 A new version of ${{ github.event.repository.name }} has been released!\n            Visit: ${{ github.event.repository.html_url }}\n          discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}\n```\n\n## Setup Instructions\n\n1. **Add Discord Webhook to Secrets**:\n   Store your Discord webhook URL in your repository's secrets as `DISCORD_WEBHOOK`.\n\n2. **Use the Action**:\n   Add the `Post2Discord` action to your workflows and provide the `message` input and `discordWebhook` secret.\n\n## Error Handling\n\n- **Debugging**: Set the `VERBOSE` environment variable to `verbose` in your workflow or runner environment to enable additional debug output.\n- **Error Messages**: The script provides basic error messages if issues occur during execution.\n\n## Contributions\n\nContributions to this project are welcome. Please ensure that you test any changes thoroughly before submitting a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmod-posh%2Fpost2discord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmod-posh%2Fpost2discord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmod-posh%2Fpost2discord/lists"}