Skip to content

Commit c4d634e

Browse files
authored
Merge pull request #6 from fairagro/feature/workflow_fixes
ci: Remove automated version update job from Docker release workflow.
2 parents d1203ba + 40b2b82 commit c4d634e

1 file changed

Lines changed: 0 additions & 59 deletions

File tree

.github/workflows/docker-release.yml

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -387,65 +387,6 @@ jobs:
387387
--field draft=false
388388
echo "🎉 Release finalized successfully"
389389
390-
update-version:
391-
name: Update pyproject.toml version
392-
needs: [docker-build-test, create-release]
393-
runs-on: ubuntu-latest
394-
# Only run on main branch for final releases
395-
if: github.ref_name == 'main' && needs.docker-build-test.result == 'success' && needs.create-release.result == 'success'
396-
permissions:
397-
contents: write
398-
pull-requests: write
399-
400-
env:
401-
TIMESTAMP: ${{ github.run_id }}${{ github.run_attempt }}
402-
RELEASE_TAG: ${{ github.run_id }}${{ github.run_attempt }}-docker-v${{ needs.docker-build-test.outputs.version }}
403-
404-
steps:
405-
- name: Checkout code
406-
uses: actions/checkout@v4
407-
with:
408-
token: ${{ secrets.GITHUB_TOKEN }}
409-
fetch-depth: 0
410-
411-
- name: Configure Git
412-
run: |
413-
git config user.name "${{ env.GIT_USER_NAME }}"
414-
git config user.email "${{ env.GIT_USER_EMAIL }}"
415-
416-
- name: Update pyproject.toml version
417-
env:
418-
NEW_VERSION: ${{ needs.docker-build-test.outputs.version }}
419-
run: |
420-
echo "🔄 Updating pyproject.toml version to: $NEW_VERSION"
421-
422-
# Update version in pyproject.toml using sed
423-
sed -i "s/^version = \".*\"/version = \"$NEW_VERSION\"/" pyproject.toml
424-
425-
# Verify the change
426-
echo "✅ Updated version:"
427-
grep "^version = " pyproject.toml
428-
429-
- name: Create Pull Request for version update
430-
uses: peter-evans/create-pull-request@v6
431-
with:
432-
token: ${{ secrets.GITHUB_TOKEN }}
433-
commit-message: "chore: bump version to ${{ needs.docker-build-test.outputs.version }} [skip ci]"
434-
branch: chore/bump-version-${{ needs.docker-build-test.outputs.version }}
435-
delete-branch: true
436-
title: "chore: bump version to ${{ needs.docker-build-test.outputs.version }}"
437-
body: |
438-
Automated version update after release ${{ needs.docker-build-test.outputs.version }}
439-
440-
This PR updates `pyproject.toml` with the new version number.
441-
442-
**Auto-generated after**: Docker Release v${{ needs.docker-build-test.outputs.version }}
443-
**Release Tag**: ${{ env.RELEASE_TAG }}
444-
**Version bump type**: ${{ github.event.inputs.version_bump || 'patch' }}
445-
446-
> This PR was automatically created by the Docker Release workflow.
447-
labels: ${{ github.event.inputs.version_bump || 'patch' }} version
448-
base: main
449390
450391
# currently there is no helm chart to update
451392
# update-helm-chart:

0 commit comments

Comments
 (0)