Skip to content

Commit 467d207

Browse files
authored
Enhance version bump process in deploy workflow
Updated the deployment workflow to include fetching and rebasing before committing changes.
1 parent 6788e1c commit 467d207

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/deploy-pypi-release.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ jobs:
3838

3939
- name: Bump version
4040
run: |
41-
git config --global user.name 'github-actions'
42-
git config --global user.email '[email protected]'
43-
git add setup.py pyproject.toml src/libcrypto/__init__.py
44-
git add .
45-
git commit -m 'version Update Mode'
46-
git push origin main
41+
git config --global user.name 'github-actions'
42+
git config --global user.email '[email protected]'
43+
git fetch origin main
44+
git pull origin main --rebase
45+
git add setup.py pyproject.toml src/libcrypto/__init__.py
46+
git add .
47+
git commit -m 'version Update Mode' || echo "No changes to commit"
48+
git push origin main
4749
4850
- name: Install dependencies
4951
run: |

0 commit comments

Comments
 (0)