Files
toolkit/README.md
T

37 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2019-07-10 14:02:56 -04:00
<p align="center">
<img src="res/at-logo.png">
</p>
2019-08-01 11:26:17 -04:00
## Toolkit
2019-07-10 14:02:56 -04:00
2019-08-01 11:26:17 -04:00
The toolkit provides a set of packages to make creating actions easier and drive consistency.
2019-04-20 10:56:56 -04:00
## Packages
2019-08-01 11:26:17 -04:00
The toolkit provides four separate packages. Since actions are run by pulling actions from the github graph, dependencies including the packages are vendored into your action.
2019-04-20 10:56:56 -04:00
| Package | Description |
| ------- | ----------- |
2019-08-01 11:26:17 -04:00
| [@actions/core](packages/core) | Core functions for getting inputs, setting outputs, setting results, logging, secrets and environment variables |
2019-06-14 11:43:06 -04:00
| [@actions/exec](packages/exec) | Functions necessary for running tools on the command line |
| [@actions/io](packages/io) | Core functions for CLI filesystem scenarios |
| [@actions/tool-cache](packages/tool-cache) | Functions necessary for downloading and caching tools |
2019-04-22 11:46:19 -04:00
2019-08-01 11:26:17 -04:00
## Creating an Action with the Toolkit
2019-04-22 11:46:19 -04:00
2019-08-01 11:26:17 -04:00
Actions are units of work which can either run in a container or on the host machine.
2019-04-22 11:46:19 -04:00
2019-08-01 11:26:17 -04:00
[Choosing an action type](docs/action-types.md): Outlines the differences and why you would want to create a host or a container based action.
2019-04-22 11:46:19 -04:00
2019-08-01 11:26:17 -04:00
[JavaScript Action Walthrough](docs/node12-action.md): Create an action which runs on the host using the toolkit
2019-04-22 11:46:19 -04:00
2019-08-01 11:26:17 -04:00
[Docker Action Walkthrough](docs/container-action.md): Create an action that is delivered as a container and run with docker.
2019-04-22 11:46:19 -04:00
2019-08-01 11:26:17 -04:00
[Docker Action Walkthrough with Octokit](docs/container-action-toolkit.md): Create an action that is delivered as a container which uses the toolkit. This example uses the GitHub context to construct an Octokit client.
2019-04-22 11:46:19 -04:00
2019-08-01 11:26:17 -04:00
[Versioning](docs/action-versioning.md): Recommendations on versioning, releases and tagging your action.
2019-04-22 11:46:19 -04:00
2019-08-01 11:26:17 -04:00
## Contributing
2019-04-22 11:46:19 -04:00
2019-08-01 11:26:17 -04:00
We welcome contributions. See [how to contribute](docs/contribute.md).