{"id":23275668,"url":"https://github.com/myrotvorets/trigger-repository-dispatch-action","last_synced_at":"2025-10-09T20:08:16.795Z","repository":{"id":36978434,"uuid":"324022947","full_name":"myrotvorets/trigger-repository-dispatch-action","owner":"myrotvorets","description":"GitHub action to trigger a repository_dispatch event","archived":false,"fork":false,"pushed_at":"2025-07-07T03:27:11.000Z","size":1874,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T04:33:55.259Z","etag":null,"topics":["ci","github-action","repository-dispatch"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myrotvorets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"zenodo":null}},"created_at":"2020-12-23T23:35:37.000Z","updated_at":"2025-07-07T03:27:14.000Z","dependencies_parsed_at":"2023-01-17T10:45:35.282Z","dependency_job_id":"94fcc647-f8a7-49cc-8240-ce7eee0dcf7d","html_url":"https://github.com/myrotvorets/trigger-repository-dispatch-action","commit_stats":{"total_commits":455,"total_committers":6,"mean_commits":75.83333333333333,"dds":0.2857142857142857,"last_synced_commit":"6bab4b29a760a90be6a11ea2b78c4c04691934f7"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":"myrotvorets/ts-action-template","purl":"pkg:github/myrotvorets/trigger-repository-dispatch-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Ftrigger-repository-dispatch-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Ftrigger-repository-dispatch-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Ftrigger-repository-dispatch-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Ftrigger-repository-dispatch-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myrotvorets","download_url":"https://codeload.github.com/myrotvorets/trigger-repository-dispatch-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Ftrigger-repository-dispatch-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264753050,"owners_count":23658779,"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":["ci","github-action","repository-dispatch"],"created_at":"2024-12-19T21:15:55.637Z","updated_at":"2025-10-09T20:08:11.774Z","avatar_url":"https://github.com/myrotvorets.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trigger repository_dispatch Action\n\nTriggers a [`repository_dispatch`](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#create-a-repository-dispatch-event) event for the given repository.\n\n## Inputs\n\n| Name      | Default             | Required? | Description |\n| --------- | ------------------- | --------- | ----------- |\n| `token`   |                     | **YES**   | A [Personal Access Token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) with `repo` scope |\n| `repo`    | `github.repository` | No        | The name of the repository to send the event (`owner/repo`) |\n| `type`    |                     | **YES**   | A custom webhook event name |\n| `payload` |                     | No        | JSON payload with extra information about the webhook event that your action or workflow may use. GitHub API allows for a maximum of 10 top-level properties |\n\n## Example usage\n\nIn the workflow that needs to trigger a `repository_dispatch` action:\n\n```yaml\n      - name: Repository Dispatch\n        uses: myrotvorets/trigger-repository-dispatch-action@1.0.0\n        with:\n          token: ${{ secrets.REPOSITORY_ACCESS_TOKEN }}\n          repo: username/my-repo\n          type: my-custom-event\n          payload: '{ \"ref\": \"${{ github.ref }}\", \"sha\": \"${{ github.sha }}\" }'\n```\n\nA workflow that handles `repository_dispatch` action:\n\n```yaml\nname: Repository Dispatch\non:\n  repository_dispatch:\n    types:\n      - my-custom-event\njobs:\n  handle-dispatch:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Print commit hash\n        run: echo ${{ github.event.client_payload.sha }}\n\n      - name: Checkout\n        uses: actions/checkout@v2\n        with:\n          ref: ${{ github.event.client_payload.ref }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyrotvorets%2Ftrigger-repository-dispatch-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyrotvorets%2Ftrigger-repository-dispatch-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyrotvorets%2Ftrigger-repository-dispatch-action/lists"}