uga
, standing for Update Github Actions is a tool that will scan the
.github
directory for YAML files (recognizable with the .yaml
or .yml
extensions), and will check if new versions of the Github actions they use are
available.
A Github action is considered "use" as soon as it appears in one of the steps
of one of the jobs
. Basically, we look for uses: {github_action}@{version}
.
Each found action is then checked against its latest revision. If something was found on github, we replace it in the file.
This program does not stage or commit files.
Run the following command:
go install github.com/pascal-blokur/uga@latest
Once installed, run the following command in a checked out Github repository:
uga
This will update the versions of your yaml files.