Skip to content

Commit 4db504d

Browse files
feat(ci): add version-bump workflow for Renovate PRs (#554)
## Summary - Adds automated version bumping for Renovate dependency update PRs - Uses the shared reusable workflow from `Unstructured-IO/infra` - Automatically bumps `__version__.py`, updates `CHANGELOG.md`, and refreshes `uv.lock` ## How it works When Renovate opens or updates a PR, this workflow: 1. Detects which components were changed 2. Parses conventional commit messages to determine bump type (major/minor/patch) 3. Bumps the version, updates changelog, and commits back to the PR branch 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Moderate risk because it introduces an automated workflow that can push commits (version/changelog/lockfile updates) to PR branches and depends on external reusable workflow behavior and secrets configuration. > > **Overview** > Adds a new GitHub Actions workflow `version-bump.yml` that runs on `pull_request` events targeting `main` and, only for PRs opened by `utic-renovate[bot]`, invokes the shared `Unstructured-IO/infra` reusable workflow to automatically apply a patch version bump and update the changelog and lockfile, committing changes back to the PR. > > The workflow requests `contents: write` permission and wires required Renovate app credentials and a private PyPI index URL via repo vars/secrets. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit a427cba. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5725fa7 commit 4db504d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/version-bump.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Version Bump
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
types: [opened, synchronize, reopened]
7+
8+
permissions:
9+
contents: write
10+
pull-requests: read
11+
12+
jobs:
13+
version-bump:
14+
if: github.event.pull_request.user.login == 'utic-renovate[bot]'
15+
uses: Unstructured-IO/infra/.github/workflows/version-bump.yml@main
16+
with:
17+
component-paths: '["."]'
18+
default-bump: patch
19+
update-changelog: true
20+
update-lockfile: true
21+
renovate-app-id: ${{ vars.RENOVATE_APP_ID }}
22+
secrets:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
private-pypi-url: ${{ secrets.PRIVATE_PYPI_INDEX_URL }}
25+
renovate-app-private-key: ${{ secrets.RENOVATE_APP_PRIVATE_KEY }}

0 commit comments

Comments
 (0)