Skip to main content

GitHub Actions CLI - allows updating workflows, etc.

Project description

GitHub Actions CLI

The purpose of this tool is to work with your GitHub Actions workflows in your repositories. It is complementary to the GitHub CLI.

So far, three main flows are supported:

List all workflows path and name in a specified repository.

Example:

github-actions-cli cunla/fakeredis list-workflows

will return:

.github/workflows/publish.yml:Upload Python Package
.github/workflows/test.yml:Unit tests
dynamic/github-code-scanning/codeql:CodeQL
dynamic/pages/pages-build-deployment:pages-build-deployment

List all actions uses in a workflow

Given a repo and a workflow path, return all actions in the workflow.

Example:

github-actions-cli cunla/fakeredis list-actions .github/workflows/publish.yml

Result

pypa/gh-action-pypi-publish@release/v1
actions/checkout@v3
actions/setup-python@v4

Update all actions in a repository workflow(s)

Show the latest versions of actions used in a repository workflow.

Example:

github-actions-cli cunla/fakeredis update

Result:

.github/workflows/publish.yml
  actions/setup-python @ v4     ==> v4.7.0
  pypa/gh-action-pypi-publish @ release/v1      ==> v1.8.8
  actions/checkout @ v3         ==> v3.5.3
.github/workflows/test.yml
  actions/setup-python @ v4     ==> v4.7.0
  release-drafter/release-drafter @ v5  ==> v5.24.0
  actions/checkout @ v3         ==> v3.5.3

Installation

pip install github-actions-cli

Help messages

usage: github-actions-cli [-h] [--github-token GITHUB_TOKEN] repo {list-workflows,list-actions,update} ...

positional arguments:
  repo                  Repository to analyze
  {list-workflows,list-actions,update}
    list-workflows      List github workflows
    list-actions        List actions in a workflow
    update              Update actions in github workflows

options:
  -h, --help            show this help message and exit
  --github-token GITHUB_TOKEN
                        GitHub token to use, by default will use GITHUB_TOKEN environment variable

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

github_actions_cli-1.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

github_actions_cli-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file github_actions_cli-1.0.0.tar.gz.

File metadata

  • Download URL: github_actions_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.17

File hashes

Hashes for github_actions_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0fa7aa7d0824b88d634a18b53eb4ea2e87ec5c3835cfe6a0c01b113169d96ef7
MD5 502a506f62fb4d0f2b421cfa4a491818
BLAKE2b-256 1a634f8d273c19c1a60c2d4639e3c99f3ce034e7bd9bcdff8f21e50f7894887d

See more details on using hashes here.

File details

Details for the file github_actions_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: github_actions_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.17

File hashes

Hashes for github_actions_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d7e445b60c9efff32e3f3ff2356ec1ec02bdd28f02b4db0a5522fbfb14cf5ad
MD5 ccc4156840d7d2f3a076dc4a03cf1ba4
BLAKE2b-256 4cefb68982d624588781dfb6cc39ad5b87b999b21dde1414bf56b53882a6b512

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