Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Update Version Workflow #380

Merged
merged 9 commits into from
Nov 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
debug
pauladkisson authored Nov 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 0c03f5afb4883602fa1ecf7143870052b33389ae
27 changes: 14 additions & 13 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
@@ -18,19 +18,20 @@ jobs:
run: |
git fetch --prune --unshallow --tags
IFS=$'\n' read -rd '' -a tags <<<"$(git tag --list --sort version:refname)"
latest_tag=${y[${#y[@]} - 1]}
old_version="${latest_tag:1}"
echo "Old Version: $old_version"
IFS=$'.' read -rd '' -a split_old_version <<<"$old_version"
old_major_version=${split_old_version[0]}
old_minor_version=${split_old_version[1]}
old_patch_version=${split_old_version[2]}
new_patch_version=`expr $old_patch_version + 1`
new_version="$old_major_version.$old_minor_version.$new_patch_version"
echo "New Version: $new_version"
sed -i -e "s/version=\"$old_version\"/version=\"$new_version\"/g" setup.py
echo "old_version=$old_version" >> "$GITHUB_ENV"
echo "new_version=$new_version" >> "$GITHUB_ENV"
echo $tags
# latest_tag=${y[${#y[@]} - 1]}
# old_version="${latest_tag:1}"
# echo "Old Version: $old_version"
# IFS=$'.' read -rd '' -a split_old_version <<<"$old_version"
# old_major_version=${split_old_version[0]}
# old_minor_version=${split_old_version[1]}
# old_patch_version=${split_old_version[2]}
# new_patch_version=`expr $old_patch_version + 1`
# new_version="$old_major_version.$old_minor_version.$new_patch_version"
# echo "New Version: $new_version"
# sed -i -e "s/version=\"$old_version\"/version=\"$new_version\"/g" setup.py
# echo "old_version=$old_version" >> "$GITHUB_ENV"
# echo "new_version=$new_version" >> "$GITHUB_ENV"
- name: Commit Changes and Create Pull Request
run: |
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com