WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

mozilla-it/action-tools

Repository files navigation

action-tools

action-tools is a CLI toolkit for working with GitHub Actions and reusable workflows.

CLI Commands

gendocs

action

> action-tools gendocs action --help

Usage: action-tools gendocs action [OPTIONS]

  Generate README.md from GitHub Actions action.yml

Options:
  --input PATH                    Path to action.yml  [default: ./action.yml]
  --output PATH                   Path for generated README  [default:
                                  ./README.md]
  --usage-examples-dir DIRECTORY  Path to directory containing custom usage
                                  examples to include
  --help                          Show this message and exit.

usage

> action-tools usage --help

Usage: action-tools usage [OPTIONS] TARGET

  Search GitHub for repositories that reference a reusable workflow or action.

  TARGET must be a reference to a GitHub Action or reusable workflow as would
  be specified in a job or step's `uses` directive.

Options:
  --token TEXT  GitHub token for authentication
  --help        Show this message and exit.

  Example Usage:
    action-tools usage "my-org/my-repo/.github/workflows/build.yml"
    action-tools usage "my-org/my-action/action-dir"
    action-tools usage "my-org/[email protected]"

  Example Output:
    some-org/some-repo
    some-org/another-repo

Setup

Required Dependencies

Before you begin, ensure you have the following installed:

You can verify installation with:

uv --version

Development Environment Setup

To initialize your development environment, run:

make init

This will:

  1. Create a virtual environment in .venv using uv venv
  2. Install all dependencies declared in pyproject.toml via uv sync

Verifying installation

After setup, confirm the CLI is working by running:

action-tools --help

This should output the base-level usage instructions for the CLI, similar to:

Usage: action-tools [OPTIONS] COMMAND [ARGS]...
...

More commands

Refer to make help for a summary of all available development commands, including those for for linting, formatting, and testing.

About

A CLI toolkit for working with GitHub Actions and reusable workflows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published