Skip to content
Open
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
43 changes: 43 additions & 0 deletions .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Create Release PR

on:
workflow_dispatch:
inputs:
version:
description: 'Version number for the release (e.g., 1.15.0)'
required: true
type: string
Comment on lines +7 to +9

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better as an input of "major" "minor" or "patch", as that removes even more thinking from the equation. See

- name: Increment version
run: python3 ./scripts/increment_version.py beta
which uses an existing script to bump "beta"

@hassayag hassayag Jul 24, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(might need to modify or make a copy of the function to allow just getting the next version number, rather than actually bumping it)


jobs:
create-release-pr:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout develop branch
uses: actions/checkout@v4
with:
ref: develop
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}

- name: Configure Git
run: |
git config user.name "Deadbot0"
git config user.email "deadbot1101@gmail.com"

- name: Create release branch
run: |
git checkout -b release/v${{ inputs.version }}
git push origin release/v${{ inputs.version }}

- name: Create Pull Request
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
gh pr create \
--base master \
--head release/v${{ inputs.version }} \
--title "Release v${{ inputs.version }}" \
--body "Automated PR to release version ${{ inputs.version }} into master. Merging this will trigger the version bump, build, and release pipeline."
Loading