{"id":31814426,"url":"https://github.com/timescale/workflow-dispatch-action","last_synced_at":"2025-10-11T08:49:21.996Z","repository":{"id":316171941,"uuid":"1062139706","full_name":"timescale/workflow-dispatch-action","owner":"timescale","description":"Dispatch a workflow action and wait for it to finish","archived":false,"fork":false,"pushed_at":"2025-09-23T03:57:15.000Z","size":535,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-23T05:45:57.314Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/timescale.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-22T21:27:58.000Z","updated_at":"2025-09-23T03:56:23.000Z","dependencies_parsed_at":"2025-09-23T14:30:33.069Z","dependency_job_id":null,"html_url":"https://github.com/timescale/workflow-dispatch-action","commit_stats":null,"previous_names":["timescale/workflow-dispatch-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/timescale/workflow-dispatch-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Fworkflow-dispatch-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Fworkflow-dispatch-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Fworkflow-dispatch-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Fworkflow-dispatch-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timescale","download_url":"https://codeload.github.com/timescale/workflow-dispatch-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Fworkflow-dispatch-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006644,"owners_count":26084150,"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-11T02:00:06.511Z","response_time":55,"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-10-11T08:49:21.158Z","updated_at":"2025-10-11T08:49:21.990Z","avatar_url":"https://github.com/timescale.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @timescale/workflow-dispatch-action\n\nDispatch a workflow action and wait for it to finish.\n\nWhen using the [Workflow Dispatch](https://docs.github.com/en/rest/actions/workflows#create-a-workflow-dispatch-event)\nvia the REST API, it's not regularly possible to know if the given dispatch\nactually succeed or not, as it's run via an asynchronous webhook. This can\nmake it annoying to coordinate running multiple dispatches in sequence where\neach relies on the previous having succeeded. This action allows for that,\nwherein it dispatches a workflow, passing a UID to it that is then put into the\nrun name, finds that workflow on searching for it, and then polls until the\nworkflow has finished, suceeding or fail the step as makes sense.\n\n## Usage\n\nSee [action.yml](action.yml)\n\n```yaml\n  - name: Dispatch Workflow\n    uses: timescale/workflow-dispatch-action@v1\n    with:\n      # Optional, the github token to use to authenticate with the\n      # GitHub REST API, defaults to ${{ secrets.GITHUB_TOKEN }}\n      github-token: ''\n      # Required, the account owner of the repository. The name is not case\n      # sensitive. E.g. 'timescale'\n      owner: ''\n      # Required, the name of the repository without the .git extension. The\n      # name is not case sensitive. E.g. 'workflow-dispatch-action'\n      repo: ''\n      # Required, the ID of the workflow. You can also pass the workflow file\n      # name as a string.\n      workflow_id: ''\n      # Required, the git reference for the workflow. The reference can be a\n      # branch or tag name.\n      ref: ''\n      # Optional, JSON string of the inputs to pass to the workflow\n      inputs: '{}'\n```\n\nFor the workflow you plan to dispatch, you will want to add an `uid` input:\n\n```yaml\n      uid:\n        description: 'UID to use for finding the workflow run'\n        required: true\n        type: string\n```\n\nyou need to add a\n[run-name](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#run-name)\nthat prints out the `uid` input:\n\n```yaml\nrun-name: Build - ${{ inputs.uid }}\n``\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimescale%2Fworkflow-dispatch-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimescale%2Fworkflow-dispatch-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimescale%2Fworkflow-dispatch-action/lists"}