Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jamshale committed Apr 15, 2024
1 parent 8f30105 commit b293075
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,24 @@ jobs:
run: |
remote_version=$(pip index versions aries-cloudagent)
version=$(grep -oP '(?<=Available versions: ).*?(?=,)' <<< "$remote_version")
echo current_available_version=$version >> $GITHUB_OUTPUT
echo "Remote version = $version"
- name: Get global aries-cloudagent version from plugins repo
id: current_global_version
run: |
lock_version=$(grep -A1 'name = "aries-cloudagent"' poetry.lock | grep -v 'name = "aries-cloudagent"')
version=$(grep -oP '(?<=").*?(?=")' <<< "$lock_version")
echo current_global_version=$version >> $GITHUB_OUTPUT
echo "Global version = $version"
- name: Check if aries-cloudagent upgrade available
run: |
function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; }
echo ${{ steps.current_available_version.outputs.version}}
echo ${{ steps.current_global_version.outputs.version }}
if [ $(version ${{ steps.current_available_version.outputs.version}}) -ge $(version ${{ steps.current_global_version.outputs.version }})]; then
echo "Version of aries-cloudagent is up to date"
exit 1
fi
- name: Update global acapy version
run: |
cd .. && python repo_manager.py 3
Expand All @@ -60,8 +70,3 @@ jobs:
git add .
git push --set-upstream origin release-v0.12.0
gh pr create --reviewer jamshale --title "Release" --body "To fill in" --base main --head jamshale:release-v0.12.0
# git commit -m "Automated Pull Request"
# git push --set-upstream origin main

# git request-pull v1.0 https://github.com/jamshale/aries-acapy-plugins

0 comments on commit b293075

Please sign in to comment.