Skip to main content

A simple CLI tool to generate a Pkl definition for a given action

Project description

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:

pkl-github-actions-step-generator from-local <path-to-action.yml> <full-reference-to-action> [-o --output <OUTPUT FILE>] [--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. 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:

pkl-github-actions-step-generator from-remote <full-reference-to-action> [-o --output <OUTPUT FILE>] [--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:

pkl-github-actions-step-generator from-remote actions/checkout@v4 -o checkout.pkl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file pkl_github_actions_step_generator-0.1.9.tar.gz.

File metadata

File hashes

Hashes for pkl_github_actions_step_generator-0.1.9.tar.gz
Algorithm Hash digest
SHA256 5ba6f9e7000fc68f060ce2bfcd12ca428dacd6530eb19af5e887638732088b39
MD5 9de354cd09e57877c27eaf7baf231538
BLAKE2b-256 4dcbcf998656bb274d5c455806157b6ec6b81d23486b4003328df2ffe15ba828

See more details on using hashes here.

File details

Details for the file pkl_github_actions_step_generator-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for pkl_github_actions_step_generator-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 008d9bdf71ae9c8b7eca53be238d14401e705b557280e865a3ccb117381184a7
MD5 451e4843edfdfa44d144539390c70195
BLAKE2b-256 ecd6e4588d04f446bce40b866e12fe6cc3483118d416d21ee4c925204033eb16

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page