File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed
Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change 1111
1212 permissions :
1313 contents : write
14+ pull-requests : write
1415
1516 steps :
1617 - name : Checkout repository
@@ -204,7 +205,7 @@ jobs:
204205 env :
205206 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
206207
207- - name : Update version in pyproject.toml
208+ - name : Update version in pyproject.toml (for release artifacts only)
208209 if : steps.check_release.outputs.exists == 'false'
209210 run : |
210211 # Update version in pyproject.toml (remove 'v' prefix for Python versioning)
@@ -213,19 +214,8 @@ jobs:
213214
214215 if [ -f "pyproject.toml" ]; then
215216 sed -i "s/version = \".*\"/version = \"$PYTHON_VERSION\"/" pyproject.toml
216- echo "Updated pyproject.toml version to $PYTHON_VERSION"
217+ echo "Updated pyproject.toml version to $PYTHON_VERSION (for release artifacts only) "
217218 fi
218219
219- - name : Commit version update
220- if : steps.check_release.outputs.exists == 'false'
221- run : |
222- git config --local user.email "[email protected] " 223- git config --local user.name "GitHub Action"
224-
225- if git diff --quiet; then
226- echo "No changes to commit"
227- else
228- git add pyproject.toml
229- git commit -m "chore: bump version to ${{ steps.get_tag.outputs.new_version }}"
230- git push
231- fi
220+ # Note: No longer committing version changes back to main branch
221+ # The version is only updated in the release artifacts
You can’t perform that action at this time.
0 commit comments