Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0307fda
fix(deps): update all non-major dependencies (#291)
renovate[bot] May 31, 2025
e9aeb40
chore(deps): update all non-major dependencies
renovate[bot] Jun 12, 2025
e0fc31b
test: fix incorrect mock
Codex- Jun 12, 2025
abec97a
chore: refresh vitest lock
Codex- Jun 12, 2025
f4a8997
chore: revert vitest version
Codex- Jun 12, 2025
8714660
chore: improve test setup
Codex- Jun 12, 2025
ae9fdda
Merge pull request #293 from Codex-/renovate/all-minor-patch
Codex- Jun 12, 2025
3d49398
security: resolve brace-expansion security advisory
Codex- Jun 12, 2025
5f52045
release: 2.0.5
Codex- Jun 12, 2025
493dbcd
Filter by creation date
carlobeltrame Jun 17, 2025
6b7c495
Filter by event type workflow_dispatch
carlobeltrame Jun 17, 2025
66afbed
chore: format
Codex- Jun 17, 2025
496dd66
feat: use created from including start time (>=)
Codex- Jun 17, 2025
96e779d
feat: avoid reconstructing the Date instance
Codex- Jun 17, 2025
d55ca73
chore: fail lint CI on warnings
Codex- Jun 17, 2025
5210b85
Merge pull request #294 from carlobeltrame/filter-workflow-runs
Codex- Jun 17, 2025
c721d73
Implement etag handling (#296)
carlobeltrame Jun 25, 2025
72a3b5d
release: 2.1.0
Codex- Jun 25, 2025
52ddb5c
chore(deps): lock file maintenance (#299)
renovate[bot] Jun 30, 2025
52fb2a8
chore(deps): lock file maintenance (#300)
renovate[bot] Jun 30, 2025
5042438
chore(deps): update all non-major dependencies (#298)
renovate[bot] Jul 20, 2025
5022e2e
chore: revert vitest version
Codex- Jul 20, 2025
dac7338
docs: add mention of await-remote-run
Codex- Jul 28, 2025
022e557
update from upstream
Aug 5, 2025
5c78959
update from upstream
Aug 5, 2025
58021f3
update from upstream
Aug 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Dispatch an action to a foreign repository and output the newly created run ID.

This Action exists as a workaround for the issue where dispatching an action to foreign repository does not return any kind of identifier.

The returned run ID can be used to await the completion of the remote run using [`await-remote-run`](https://github.com/Codex-/await-remote-run).

## Usage

Ensure you have configured your remote action correctly, see below for an example.
Expand Down Expand Up @@ -35,6 +37,14 @@ steps:
run: |
echo ${{steps.return_dispatch.outputs.run_id}}
echo ${{steps.return_dispatch.outputs.run_url}}

- name: Await Run ID ${{ steps.return_dispatch.outputs.run_id }}
uses: Codex-/await-remote-run@v1
with:
token: ${{ github.token }}
repo: repository-name
owner: repository-owner
run_id: ${{ steps.return_dispatch.outputs.run_id }}
```

### Receiving Repository Action
Expand Down
81 changes: 63 additions & 18 deletions dist/index.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[tools]
node = "20.19.2"
pnpm = "10.12.1"
node = "20.19.4"
pnpm = "10.13.1"
33 changes: 13 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "return-dispatch",
"version": "2.0.5",
"version": "2.1.0",
"private": true,
"description": "Dispatch an action and output the run ID.",
"main": "lib/main.js",
Expand Down Expand Up @@ -34,31 +34,24 @@
"@actions/github": "^6.0.1"
},
"devDependencies": {
"@eslint/js": "^9.28.0",
"@eslint/js": "^9.31.0",
"@octokit/types": "^14.1.0",
"@opentf/std": "^0.13.0",
"@total-typescript/ts-reset": "^0.6.1",
"@types/node": "~20.19.0",
"@typescript-eslint/eslint-plugin": "^8.34.0",
"@typescript-eslint/parser": "^8.34.0",
"@types/node": "~20.19.9",
"@typescript-eslint/eslint-plugin": "^8.37.0",
"@typescript-eslint/parser": "^8.37.0",
"@vitest/coverage-v8": "~3.1.4",
"chalk": "^5.4.1",
"changelogithub": "^13.15.0",
"esbuild": "^0.25.5",
"eslint": "^9.28.0",
"changelogithub": "^13.16.0",
"esbuild": "^0.25.8",
"eslint": "^9.31.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.3",
"eslint-plugin-import-x": "^4.15.2",
"prettier": "3.5.3",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import-x": "^4.16.1",
"prettier": "3.6.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.34.0",
"typescript-eslint": "^8.37.0",
"vitest": "~3.1.4"
},
"resolutions": {
"vite": ">=6.2.7"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
}
}
Loading