Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Apr 12, 2024
1 parent 9599681 commit bf5084e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
checks:
name: "Check global version"
runs-on: ubuntu-latest
outputs:
current_available_version: ${{ steps.current_available_version.outputs.version }}
current_global_version: ${{ steps.current_global_version.outputs.version }}
defaults:
run:
working-directory: ./plugin_globals
Expand All @@ -22,6 +25,10 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Install poetry
run: pipx install poetry
id: setup-poetry

- name: Get latest aries-cloudagent version
id: current_available_version
Expand All @@ -35,4 +42,15 @@ jobs:
run: |
lock_version=$(grep -A1 'name = "aries-cloudagent"' poetry.lock | grep -v 'name = "aries-cloudagent"')
version=$(grep -oP '(?<=").*?(?=")' <<< "$lock_version")
echo "Global version = $version"
echo "Global version = $version"
- name: Update global acapy version
run: |
python repo_manager.py
read 3
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Upgrade on aca-py release
committer: Peter Evans <[email protected]>
branch: test-upgrade
2 changes: 1 addition & 1 deletion plugin_globals/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ python = "^3.9"

# Define ACA-Py as an optional/extra dependancy so it can be
# explicitly installed with the plugin if desired.
aries-cloudagent = { version = "0.11.0", optional = true }
aries-cloudagent = { version = ">=0.10.3, < 1.0.0", optional = true }

[tool.poetry.extras]
aca-py = ["aries-cloudagent"]
Expand Down
8 changes: 8 additions & 0 deletions repo_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,14 @@ def main():
f'cd {plugin_name} && rm poetry.lock && poetry install')
os.system(
f'cd {plugin_name}/integration && rm poetry.lock && poetry install')

# Install plugin globals
elif selection == "3":
msg = """Upgrade plugin_global dependencies \n"""
print(msg)
os.system('cd plugin_globals')
os.system('poetry install')



if __name__ == "__main__":
Expand Down

0 comments on commit bf5084e

Please sign in to comment.