From 4e1ba59fb59c297975339c2087206b40794df018 Mon Sep 17 00:00:00 2001 From: jamshale Date: Mon, 15 Apr 2024 12:55:49 -0700 Subject: [PATCH] WIP --- .github/workflows/release.yaml | 3 ++- repo_manager.py | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 000c7c4f9..0c5e77498 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -60,6 +60,7 @@ jobs: available=false exit 1 fi + echo "Detected aries-cloudagent upgrade available..." available=true - name: Update global acapy version @@ -68,7 +69,7 @@ jobs: echo "Update global acapy version" - name: Run global updates run: | - cd .. && python repo_manager.py 1 + cd .. && python repo_manager.py 3 echo "Upgrade all plugins" - name: Create Pull Request env: diff --git a/repo_manager.py b/repo_manager.py index 5d47a85bb..af46a570f 100644 --- a/repo_manager.py +++ b/repo_manager.py @@ -271,7 +271,7 @@ def is_plugin_directory(plugin_name: str) -> bool: return os.path.isdir(plugin_name) and plugin_name != GLOBAL_PLUGIN_DIR and not plugin_name.startswith('.') -def main(arg_1): +def main(arg_1 = None): print("Checking poetry is available...") response = os.system('which poetry') if response == "": @@ -332,4 +332,7 @@ def main(arg_1): if __name__ == "__main__": - main(sys.argv[1]) \ No newline at end of file + try: + main(sys.argv[1]) + except Exception: + main() \ No newline at end of file