This repository was archived by the owner on Jul 10, 2026. It is now read-only.
bump-version #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Bump Version | |
| on: | |
| repository_dispatch: | |
| types: [bump-version] | |
| permissions: | |
| contents: write | |
| jobs: | |
| bump: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Bump version | |
| run: | | |
| VERSION="${{ github.event.client_payload.version }}" | |
| if [ -z "$VERSION" ]; then | |
| echo "::error::No version in client_payload" | |
| exit 1 | |
| fi | |
| bash scripts/bump-version.sh "$VERSION" | |
| - name: Commit, tag, and push | |
| run: | | |
| VERSION="${{ github.event.client_payload.version }}" | |
| VERSION="${VERSION#v}" | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add extension.toml Cargo.toml Cargo.lock | |
| if git diff --cached --quiet; then | |
| echo "No changes" | |
| exit 0 | |
| fi | |
| git commit -m "bump version to $VERSION" | |
| git tag "v$VERSION" | |
| git push | |
| git push origin "v$VERSION" |