ComPWA/mirrors-taplo

Add a workflow to update pre-commit hooks version in config when a new version is released

Closed this issue · 1 comments

Problem description

It would be nice to have automation that means that when taplo is updated upstream, that the pre-commit hooks in this repo update themselves automatically.

Proposed solution

A new GitHub Actions workflow that runs semi-frequently:

  • Check out code
  • Get list of semantic version tags from upstream repo sorted from most recent to least (highest to lowest)
  • Compare latest with version in config file
  • If this repo is out of date, update with newest version
  • Commit change, push to main branch
  • Create new tag, push

This would automate the process of managing this repository.

#4 should do the job 👍 I'll remove the tags and run that new workflow manually to overwrite the existing tags.