Catalog PyPI
PACKAGE EXPLORERView in registry

action-updater

PyPI

Update deprecated command, versions, and other for GitHub actions

actionsgithubupdater
Versions collected1
Direct dependencies8From release 0.0.16
Last observed20 Oct, 18:34 UTC

README

Version 0.0.16 documentation

Action Updater

PyPI version main

docs/assets/img/logo/action-updater-small.png

All Contributors

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.

docs/assets/img/detect.png

And after you run update (described below) you will see all green!

docs/assets/img/clean.png

Running across many files:

docs/assets/img/updates.png

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.

License

This code is licensed under the MPL 2.0 LICENSE.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.165 Nov 20228

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
vsoch/action-updater

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:34 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7b9f41ec99b3051b9b4a66505806d20c9cf82f1578307385e966f2d1ae2b196f