Skip to content
Merged
Changes from all commits
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
59 changes: 0 additions & 59 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,65 +387,6 @@ jobs:
--field draft=false
echo "🎉 Release finalized successfully"

update-version:
name: Update pyproject.toml version
needs: [docker-build-test, create-release]
runs-on: ubuntu-latest
# Only run on main branch for final releases
if: github.ref_name == 'main' && needs.docker-build-test.result == 'success' && needs.create-release.result == 'success'
permissions:
contents: write
pull-requests: write

env:
TIMESTAMP: ${{ github.run_id }}${{ github.run_attempt }}
RELEASE_TAG: ${{ github.run_id }}${{ github.run_attempt }}-docker-v${{ needs.docker-build-test.outputs.version }}

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "${{ env.GIT_USER_NAME }}"
git config user.email "${{ env.GIT_USER_EMAIL }}"

- name: Update pyproject.toml version
env:
NEW_VERSION: ${{ needs.docker-build-test.outputs.version }}
run: |
echo "🔄 Updating pyproject.toml version to: $NEW_VERSION"

# Update version in pyproject.toml using sed
sed -i "s/^version = \".*\"/version = \"$NEW_VERSION\"/" pyproject.toml

# Verify the change
echo "✅ Updated version:"
grep "^version = " pyproject.toml

- name: Create Pull Request for version update
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: bump version to ${{ needs.docker-build-test.outputs.version }} [skip ci]"
branch: chore/bump-version-${{ needs.docker-build-test.outputs.version }}
delete-branch: true
title: "chore: bump version to ${{ needs.docker-build-test.outputs.version }}"
body: |
Automated version update after release ${{ needs.docker-build-test.outputs.version }}

This PR updates `pyproject.toml` with the new version number.

**Auto-generated after**: Docker Release v${{ needs.docker-build-test.outputs.version }}
**Release Tag**: ${{ env.RELEASE_TAG }}
**Version bump type**: ${{ github.event.inputs.version_bump || 'patch' }}

> This PR was automatically created by the Docker Release workflow.
labels: ${{ github.event.inputs.version_bump || 'patch' }} version
base: main

# currently there is no helm chart to update
# update-helm-chart:
Expand Down