💫 Toolkit to help you get started with SDD or any other process!
Fix release workflow to work with repository rules
Den Delimarsky 🌺f755bcfb430b
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex f922992d3..fd7f5c739 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -11,12 +11,14 @@ jobs:permissions:contents: write+ pull-requests: writesteps:- name: Checkout repositoryuses: actions/checkout@v4with:fetch-depth: 0+ token: ${{ secrets.GITHUB_TOKEN }}- name: Get latest tagid: get_tag@@ -204,7 +206,7 @@ jobs:env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- - name: Update version in pyproject.toml+ - name: Update version in pyproject.toml (for release artifacts only)if: steps.check_release.outputs.exists == 'false'run: |# Update version in pyproject.toml (remove 'v' prefix for Python versioning)@@ -213,19 +215,8 @@ jobs:if [ -f "pyproject.toml" ]; thensed -i "s/version = \".*\"/version = \"$PYTHON_VERSION\"/" pyproject.toml- echo "Updated pyproject.toml version to $PYTHON_VERSION"+ echo "Updated pyproject.toml version to $PYTHON_VERSION (for release artifacts only)"fi- - name: Commit version update- if: steps.check_release.outputs.exists == 'false'- run: |- git config --local user.email "[email protected]"- git config --local user.name "GitHub Action"-- if git diff --quiet; then- echo "No changes to commit"- else- git add pyproject.toml- git commit -m "chore: bump version to ${{ steps.get_tag.outputs.new_version }}"- git push- fi+ # Note: No longer committing version changes back to main branch+ # The version is only updated in the release artifacts