Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added workflow for creating branches for patch releases #3192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
33 changes: 33 additions & 0 deletions .github/workflows/create_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Create Release Branch

on:
workflow_dispatch:
inputs:
version:
description: 'Base version to build off of (format: x.y.z)'
required: true


jobs:
# Simple workflow that creates a release branch off of a given tag.
# Our branch protection rules prevent users from creating branches
# on their own, as we don't want too much clutter. This allows
# maintainers to create a new branch for generating patches when
# necessary.
branch:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Checkout the tag corresponding to patch 0 for the given version
- name: Checkout sources
uses: actions/[email protected]
with:
fetch-tags: true
ref: ${{ inputs.version }}.0

# Create and push the branch
- name: Create Branch
run: git checkout -b ${{ inputs.version }}-release
- name: Push
run: git push origin --set-upstream ${{ inputs.version }}-release
Loading