From e812ae128d75b577bed8edadfce132639dbb665e Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 11 Mar 2026 17:53:34 +0000 Subject: [PATCH] Version bump via PR instead of direct push to master --- .github/workflows/build.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 428dc9e..736a9ec 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -45,14 +45,23 @@ jobs: echo "version=$current" >> $GITHUB_OUTPUT fi - - name: Commit version bump + - name: Create version bump PR if: steps.check.outputs.updated == 'true' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + branch="auto/bump-${{ steps.check.outputs.version }}" git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' + git checkout -b "$branch" git add VERSION git commit -m "Bump version to ${{ steps.check.outputs.version }}" - git push + git push origin "$branch" + gh pr create \ + --title "Bump proton-bridge to ${{ steps.check.outputs.version }}" \ + --body "Auto-detected new upstream release. Merging will trigger the build pipeline." \ + --base master \ + --head "$branch" test: runs-on: ubuntu-latest