From 909ee9b5c2b88b3bba79a70a248b575f7994f79b Mon Sep 17 00:00:00 2001 From: Vanessasaurus <814322+vsoch@users.noreply.github.com> Date: Fri, 4 Nov 2022 21:21:29 -0600 Subject: [PATCH] add missing cache (#25) * add missing cache Signed-off-by: vsoch --- CHANGELOG.md | 1 + README.md | 2 +- action_updater/main/updaters/version/update.py | 3 +++ action_updater/version.py | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 510deab..6831ef1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are: The versions coincide with releases on pip. Only major versions will be released as tags on Github. ## [0.0.x](https://github.com/rse-ops/actions-updater/tree/main) (0.0.x) + - missing cache added back (0.0.16) - add support for updating action.yml (with composite action) (0.0.15) - add line_length parameter to settings (0.0.14) - enforce fallback to use major versions still enforces commit (0.0.13) diff --git a/README.md b/README.md index 7abfc1a..1231aef 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ You can see the [⭐️ Documentation ⭐️](https://vsoch.github.io/action-upd ## ⭐️ Quick Start ⭐️ -### Installation +### Installation The module is available in pypi as [action-updater](https://pypi.org/project/action-updater/), and to install we first recommend some kind of virtual environment: diff --git a/action_updater/main/updaters/version/update.py b/action_updater/main/updaters/version/update.py index b6600c7..f6d6c49 100644 --- a/action_updater/main/updaters/version/update.py +++ b/action_updater/main/updaters/version/update.py @@ -64,6 +64,9 @@ def detect(self, action): if not updated: updated = self.get_tagged_commit(tags) + # Save repo tags in cache + self.cache["tags"][repo] = tags + # If we don't have tags by this point, no go - we cannot parse if not updated: continue diff --git a/action_updater/version.py b/action_updater/version.py index bc3ffca..ca43cf8 100644 --- a/action_updater/version.py +++ b/action_updater/version.py @@ -2,7 +2,7 @@ __copyright__ = "Copyright 2022, Vanessa Sochat" __license__ = "MPL 2.0" -__version__ = "0.0.15" +__version__ = "0.0.16" AUTHOR = "Vanessa Sochat" EMAIL = "vsoch@users.noreply.github.com" NAME = "action-updater"