Action Updater
The actions updater will make it easy to update actions:
- 🥑 updated syntax and commands
- 🥑 versions of actions, either for releases or commits
- 🥑 preview, write to new file, or write in place!
- 🥑 run as a GitHub action workflow for annual checks!
You can see the ⭐️ Documentation ⭐️ for complete details!
⭐️ Quick Start ⭐️
Installation
The module is available in pypi as action-updater, and to install we first recommend some kind of virtual environment:
$ python -m venv env
$ source env/bin/activate
And then install from pypi using pip:
$ pip install action-updater
Usage
For all commands below, the actions updater can accept a directory with yaml files, or a single yaml file that matches the GitHub actions schema.
View updaters available (and descriptions)
$ action-updater list-updaters
You should likely detect (to preview) before you write the changes to file.
# Run all updaters
$ action-updater detect .github/workfows/main.yaml
# Only detect for the setoutput updater
$ action-updater detect -u setoutput .github/workfows/main.yaml
And finally, write updates to file!
$ action-updater update .github/workfows/main.yaml
🎨 Screenshots 🎨
If a file has updates, it will print to the terminal the updated file for preview.
And after you run update (described below) you will see all green!
Running across many files:
And that's it! The action comes with several updaters that will look for particular aspects to lint or update. If you have a request for a new updated, please open an issue.
Feature Ideas
This could be fairly easy to extend to allow for more "linting" style actions to reflect preferences in style, e.g:
$ action-updater lint .github/workflows/main.yaml
If this sounds interesting to you, please open an issue to discuss further! We currently do some basic linting, as the yaml loading library has preferences for saving with respect to spacing, etc.
😁️ Contributors 😁️
We use the all-contributors tool to generate a contributors graphic below.
Vanessasaurus 💻 |
Mike Henry 💻 |
License
This code is licensed under the MPL 2.0 LICENSE.
Metadata
Release files for action-updater 0.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| action-updater-0.0.16.tar.gz | 35.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| action_updater-0.0.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.7 kB
Release files / action-updater-0.0.16.tar.gz
| Download URL | action-updater-0.0.16.tar.gz |
|---|---|
| Size | 35.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f130344969cbaf676d80b548cbf17e75eb00529ec079b6d26b468c8332a3545
|
|
BLAKE2b-256 checksum How to use checksums |
f37e147d5c40ddd3b52f3060f0098dc404425105bf717a1cea47a9a7884d7e18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.6
|
Release files / action_updater-0.0.16-py3-none-any.whl
| Download URL | action_updater-0.0.16-py3-none-any.whl |
|---|---|
| Size | 46.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13a947f6e2af6715f2eef2da85e250b732b2bb65d8167058478958444f86304a
|
|
BLAKE2b-256 checksum How to use checksums |
f7af8a2819fe0abc3fdd45b353b4daaf358e826f6ffe77e9b8feb938e9f7f693
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.6
|