Expose template metadata to custom action handler

Currently, we only expose the template name to satisfy the requirement from the issue, but more can be added easily (as long as the type is expanded accordingly).

Signed-off-by: Joon Park <joonp@spotify.com>
This commit is contained in:
Joon Park
2021-10-21 17:54:20 +01:00
parent 2fabfd42ac
commit ecdcbd08ee
11 changed files with 103 additions and 0 deletions
@@ -91,6 +91,8 @@ argument. It looks like the following:
- `createTemporaryDirectory` a function to call to give you a temporary
directory somewhere on the runner so you can store some files there rather
than polluting the `workspacePath`
- `ctx.metadata` - an object containing a `name` field, indicating the template
name. More metadata fields may be added later.
### Registering Custom Actions