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.
Basic usage
Run github-actions-cli within a directory which has a clone of a GitHub repository.
The tool will list the GitHub actions workflows, the actions they use, the current versions they use, and the latest
versions of the actions.
./.github/workflows/test.yml:
actions/checkout v2 ==> v3
release-drafter/release-drafter v5
actions/setup-python v4
./.github/workflows/publish.yml:
pypa/gh-action-pypi-publish v1
actions/checkout v2 ==> v3
actions/setup-python v3 ==> v4
Supported use cases
Usage: github-actions-cli [OPTIONS] COMMAND [ARGS]...
Options:
--repo TEXT Repository to analyze, can be a local directory or
a {OWNER}/{REPO} format [default: .]
--github-token TEXT GitHub token to use, by default will use
GITHUB_TOKEN environment variable
--compare-exact-versions Compare versions using all semantic and not only
major versions, e.g., v1 will be upgraded to
v1.2.3
--help Show this message and exit.
Commands:
list-actions List actions in a workflow
list-workflows List workflows in repository
update-actions Show actions required updates in repository workflows
update-actions List all actions that are out of date in a repository (Default)
List the latest versions of actions used in a repository workflows and potentially update the workflow files.
For example, running github-actions-cli without any parameters will look for workflows in the
current directory (.), check whether there are updates required for the actions in the workflows
it finds.
Another example, running on a remote repository, github-actions-cli -repo cunla/fakeredis update-actions -u,
will look for the latest versions of the actions used in the repository cunla/fakeredis, and because of the -u
flag, it will create a commit updating the workflows to the latest.
Note: Having
GITHUB_TOKENwith permissions to make commits on the repository is required in order to write to repository.
Parameters:
Usage: github-actions-cli update-actions [OPTIONS]
Show actions required updates in repository workflows
Options:
-u, --update Update actions in workflows (For remote repos: make
changes and commit, for local repos: update files)
-commit-msg TEXT Commit msg, only relevant when remote repo [default:
chore(ci):update actions]
--help Show this message and exit.
If you want the check to compare exact versions and not only major versions, use the --compare-exact-versions flag.
list-workflows List all workflow paths and names in a specified repository.
Example:
github-actions-cli --repo cunla/fakeredis list-workflows
will return:
.github/workflows/publish.yml
.github/workflows/test.yml
list-actions List all actions uses in a workflow
Given a repo and a workflow path, return all actions in the workflow.
Example:
github-actions-cli --repo cunla/fakeredis list-actions .github/workflows/test.yml
Result
actions/checkout@v3
./.github/actions/test-coverage
release-drafter/release-drafter@v5
actions/setup-python@v4
Installation
pip install github-actions-cli
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file github_actions_cli-1.2.3.tar.gz.
File metadata
- Download URL: github_actions_cli-1.2.3.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
996e268ccca0c8ae29521f989d25cda9e7462fd87baf1550a3f31be95a91bdb6
|
|
| MD5 |
8bd2cf74512dd9b42c30063eb9d703f1
|
|
| BLAKE2b-256 |
f87cf2f061b2e52e662bf69685c2d10ccd822492793ad3acde2b2a1d5e4118b4
|
Provenance
The following attestation bundles were made for github_actions_cli-1.2.3.tar.gz:
Publisher:
publish.yml on dsoftwareinc/github-actions-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
github_actions_cli-1.2.3.tar.gz -
Subject digest:
996e268ccca0c8ae29521f989d25cda9e7462fd87baf1550a3f31be95a91bdb6 - Sigstore transparency entry: 686081659
- Sigstore integration time:
-
Permalink:
dsoftwareinc/github-actions-cli@5149307efa1fe7e2ffaca54ad4bd7ac46a94e38b -
Branch / Tag:
refs/tags/v1.2.3 - Owner: https://github.com/dsoftwareinc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5149307efa1fe7e2ffaca54ad4bd7ac46a94e38b -
Trigger Event:
release
-
Statement type:
File details
Details for the file github_actions_cli-1.2.3-py3-none-any.whl.
File metadata
- Download URL: github_actions_cli-1.2.3-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85cd5299cd3f6cf7318235ed564a4415c369ec4b13e6e90a1a70dc54f81813dc
|
|
| MD5 |
f0847364f4a8bb363a7fbbd563437f91
|
|
| BLAKE2b-256 |
3b5ce4db631ed0cb0d6fbdc8af4c8dd5247d2286e4064adbfcfbd6dee5f438b4
|
Provenance
The following attestation bundles were made for github_actions_cli-1.2.3-py3-none-any.whl:
Publisher:
publish.yml on dsoftwareinc/github-actions-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
github_actions_cli-1.2.3-py3-none-any.whl -
Subject digest:
85cd5299cd3f6cf7318235ed564a4415c369ec4b13e6e90a1a70dc54f81813dc - Sigstore transparency entry: 686081662
- Sigstore integration time:
-
Permalink:
dsoftwareinc/github-actions-cli@5149307efa1fe7e2ffaca54ad4bd7ac46a94e38b -
Branch / Tag:
refs/tags/v1.2.3 - Owner: https://github.com/dsoftwareinc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5149307efa1fe7e2ffaca54ad4bd7ac46a94e38b -
Trigger Event:
release
-
Statement type: