Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emilymclean/pkl-github-actions-step-generator
https://github.com/emilymclean/pkl-github-actions-step-generator
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/emilymclean/pkl-github-actions-step-generator
- Owner: emilymclean
- License: mit
- Created: 2024-11-13T01:21:49.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-14T04:45:55.000Z (about 2 months ago)
- Last Synced: 2024-12-13T17:51:42.991Z (21 days ago)
- Language: Python
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pkl-github-action-step-generator
A simple CLI tool to generate a Pkl definition for a given action
## Usage
The tool supports generating Pkl step definitions from two sources, remote or local.For local, the command is as follows:
```sh
pkl-github-actions-step-generator from-local [-o --output ] [--pkl-github-actions-bindings] [--pkl-github-actions-bindings-version]
````full-reference-to-action` should be in the form you would use to reference the action in a workflow (e.g. `actions/checkout@v4`).
The `--pkl-github-actions-bindings` enables the generation of bindings to [pkl-github-actions](https://github.com/emilymclean/pkl-github-actions). The version flag allows you to specify a version (otherwise a default will be used).
If no output is provided, the file content will instead be output to stdout.
Remote has the same options, except it finds the `action.yml` in the remote repository:
```sh
pkl-github-actions-step-generator from-remote [-o --output ] [--pkl-github-actions-bindings] [--pkl-github-actions-bindings-version]
```For example, to generate a file containing the definition for the checkout action, the command would be:
```sh
pkl-github-actions-step-generator from-remote actions/checkout@v4 -o checkout.pkl
```