-
Notifications
You must be signed in to change notification settings - Fork 996
33 lines (33 loc) · 1.06 KB
/
git-create-release-branch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Create Release Branches
run-name: Create Release Branch ${{ inputs.release_branch_name }}
on:
workflow_dispatch:
inputs:
release_branch_name:
description: "Github Release Branch Name"
required: true
base_branch_name:
description: "Base Branch for Release Branch"
required: true
default: "main"
permissions:
contents: write
jobs:
create-release-branch:
name: Create Release Branch ${{ inputs.release_branch_name }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
ref: ${{ inputs.base_branch_name }}
- name: Update application versions
run: |
make update_all RELEASE_VERSION=${{ inputs.release_branch_name }}
- name: Commit changes to ${{ inputs.release_branch_name }} branch
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'chore(release): Prepare Branch for `${{ inputs.release_branch_name }}`'
add: '.'
new_branch: ${{ inputs.release_branch_name }}