No project description provided
Project description
gha-tools
Table of Contents
Installation
pip install gha-tools
You can also use pipx
to directly run gha-tools
.
Usage
Automatically updating workflow action versions
Use gh-tools autoupdate
on a workflow file or directory to automatically
update the action versions to the latest available version.
- By default, the command will not write changes to the file system; use
--write
to have it do that. - You can use
--diff
to see what changes would be made. This can be used in conjunction with--write
. - You can use
--version-strategy=specific
to update to a specific latest version tag instead of the major tag, e.g.v1.2.3
instead ofv1
. The default is to use the major tag, when available.
$ gha-tools autoupdate --diff .github/workflows
Updating .github/workflows/publish.yml...
No changes to .github/workflows/publish.yml.
Updating .github/workflows/ci.yml...
--- .github/workflows/ci.yml
+++ .github/workflows/ci.yml
@@ -34,7 +34,7 @@
requirements*txt
- run: 'pip install -e . -r requirements-test.txt'
- run: py.test -vvv --cov .
- - uses: codecov/codecov-action@v2
+ - uses: codecov/codecov-action@v3
Lint:
runs-on: ubuntu-20.04
GitHub Rate Limiting
Since this tool uses the GitHub API, you may run into rate limiting issues.
You can specify your GitHub authentication via the environment variable GITHUB_TOKEN
or GITHUB_AUTH
.
If the value of the environment variable contains a colon (:
), it will be interpreted as a username and password;
this is useful with Personal Access Tokens, which are used with your GitHub username.
License
gha-tools
is distributed under the terms of the MIT license.
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
Hashes for gha_tools-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27cb3af13ad298876532c32efcae0ec3bc062e55e4fa59c79d54388ceb676405 |
|
MD5 | 41790358b9aa3fc1fdbe9d7166d6fe18 |
|
BLAKE2b-256 | e24209c474785ee80c9f41ee0615969a3afcb1fcc92f7880b11cce082bec2714 |