File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ Dispatch an action to a foreign repository and output the newly created run ID.
6
6
7
7
This Action exists as a workaround for the issue where dispatching an action to foreign repository does not return any kind of identifier.
8
8
9
+ 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 ) .
10
+
9
11
## Usage
10
12
11
13
Ensure you have configured your remote action correctly, see below for an example.
@@ -35,6 +37,14 @@ steps:
35
37
run : |
36
38
echo ${{steps.return_dispatch.outputs.run_id}}
37
39
echo ${{steps.return_dispatch.outputs.run_url}}
40
+
41
+ - name : Await Run ID ${{ steps.return_dispatch.outputs.run_id }}
42
+ uses : Codex-/await-remote-run@v1
43
+ with :
44
+ token : ${{ github.token }}
45
+ repo : repository-name
46
+ owner : repository-owner
47
+ run_id : ${{ steps.return_dispatch.outputs.run_id }}
38
48
` ` `
39
49
40
50
### Receiving Repository Action
You can’t perform that action at this time.
0 commit comments