Skip to main content

No project description provided

Project description

gha-tools

PyPI - Version PyPI - Python Version


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 of v1. 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


Download files

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

Source Distribution

gha_tools-0.0.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

gha_tools-0.0.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file gha_tools-0.0.2.tar.gz.

File metadata

  • Download URL: gha_tools-0.0.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for gha_tools-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3b17025e83738f541e181ab1b1d362fbf7e8b590a30f43bf4110e6007afaaa63
MD5 7db1e70a1dc52453ccdc2625593ef113
BLAKE2b-256 3e864f27f22292c43d3a7200df8b80596715e0a3c68428afaec3aefa575ac95b

See more details on using hashes here.

File details

Details for the file gha_tools-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: gha_tools-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for gha_tools-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 23275739a55e646796f009131738ccdcb9ab5ea61d41c81ff3de046d3d1992c3
MD5 895f83df2704d27f2dd202549fa14829
BLAKE2b-256 8b06cc3016f59fec8a38911681413598d897fd54092aba80cd4f69a1f432da1f

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