{"id":26552759,"url":"https://github.com/codex-/await-remote-run","last_synced_at":"2025-06-15T19:04:52.061Z","repository":{"id":39283971,"uuid":"385803471","full_name":"Codex-/await-remote-run","owner":"Codex-","description":"✅ Await the completion of a foreign repository Workflow Run given the Run ID.","archived":false,"fork":false,"pushed_at":"2024-09-18T01:28:22.000Z","size":3176,"stargazers_count":28,"open_issues_count":4,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-09-18T05:17:00.264Z","etag":null,"topics":["actions","automation","github-actions"],"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/Codex-.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}},"created_at":"2021-07-14T03:34:51.000Z","updated_at":"2024-09-18T01:28:24.000Z","dependencies_parsed_at":"2023-01-04T12:18:24.139Z","dependency_job_id":"6dc43aa5-684a-48ae-9e13-120b7b2457ea","html_url":"https://github.com/Codex-/await-remote-run","commit_stats":{"total_commits":150,"total_committers":3,"mean_commits":50.0,"dds":"0.42666666666666664","last_synced_commit":"c63251c1e162142aad5991bf71f04474715efcae"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codex-%2Fawait-remote-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codex-%2Fawait-remote-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codex-%2Fawait-remote-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codex-%2Fawait-remote-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codex-","download_url":"https://codeload.github.com/Codex-/await-remote-run/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931591,"owners_count":20534011,"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":["actions","automation","github-actions"],"created_at":"2025-03-22T08:49:28.875Z","updated_at":"2025-06-15T19:04:52.040Z","avatar_url":"https://github.com/Codex-.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action: await-remote-run\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/codex-/await-remote-run/test.yml?style=flat-square)](https://github.com/Codex-/await-remote-run/actions/workflows/test.yml) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) [![codecov](https://img.shields.io/codecov/c/github/Codex-/await-remote-run?style=flat-square)](https://codecov.io/gh/Codex-/await-remote-run) [![GitHub Marketplace](https://img.shields.io/badge/Marketplace-await–remote–run-blue.svg?colorA=24292e\u0026colorB=0366d6\u0026style=flat-square\u0026longCache=true\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=)](https://github.com/marketplace/actions/await-remote-run)\n\nAwait the completion of a foreign repository Workflow Run given the Run ID.\n\nThis Action exists as a workaround for the issue where you cannot await the completion of a dispatched action.\n\nThis action requires being able to get the run ID from a dispatched action, this can be achieved through another Action i've created, [return-dispatch](https://github.com/Codex-/return-dispatch).\n\nShould a remote workflow run fail, this action will attempt to output which step failed, with a link to the workflow run itself.\n\nAn example using both of these actions is documented below.\n\n## Usage\n\nOnce you have configured your remote repository to work as expected with the `return-dispatch` action, include `await-remote-run` as described below.\n\n```yaml\nsteps:\n  - name: Dispatch an action and get the run ID\n    uses: codex-/return-dispatch@v2\n    id: return_dispatch\n    with:\n      token: ${{ github.token }}\n      repo: repository-name\n      owner: repository-owner\n      workflow: automation-test.yml\n  - name: Await Run ID ${{ steps.return_dispatch.outputs.run_id }}\n    uses: Codex-/await-remote-run@v1\n    with:\n      token: ${{ github.token }}\n      repo: return-dispatch\n      owner: codex-\n      run_id: ${{ steps.return_dispatch.outputs.run_id }}\n      run_timeout_seconds: 300 # Optional\n      poll_interval_ms: 5000 # Optional\n```\n\n### Permissions Required\n\nThe permissions required for this action to function correctly are:\n\n- `repo` scope\n  - You may get away with simply having `repo:public_repo`\n  - `repo` is definitely needed if the repository is private.\n- `actions:read`\n\n### APIs Used\n\nFor the sake of transparency please note that this action uses the following API calls:\n\n- [Get a workflow run](https://docs.github.com/en/rest/reference/actions#get-a-workflow-run)\n  - GET `/repos/{owner}/{repo}/actions/runs/{run_id}`\n  - Permissions:\n    - `repo`\n    - `actions:read`\n- [List jobs for a workflow run](https://docs.github.com/en/rest/reference/actions#list-jobs-for-a-workflow-run)\n  - GET `/repos/{owner}/{repo}/actions/runs/{run_id}/jobs`\n  - Permissions:\n    - `repo`\n    - `actions:read`\n\nFor more information please see [api.ts](./src/api.ts).\n\n## Where does this help?\n\nIf you want to use the result of a Workflow Run from a remote repository to complete a check locally, i.e. you have automated tests on another repository and don't want the local checks to pass if the remote fails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-%2Fawait-remote-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodex-%2Fawait-remote-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-%2Fawait-remote-run/lists"}