forked from carbon-design-system/carbon-for-ibm-dotcom
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 842 Bytes
/
Copy pathcut-release-branch.yml
File metadata and controls
27 lines (27 loc) · 842 Bytes
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
name : Cut Release branch
on:
workflow_dispatch:
inputs:
version-number:
required: true
description: 'version number (ie: 2.3.0)'
type: string
default: '2.x.x'
jobs:
create-release-branch:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
GH_TOKEN: ${{ secrets.MERGE_ACTION }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: '0'
- name: Config github user
run: |
git config --global user.email "digdes@us.ibm.com"
git config --global user.name "ibmdotcom-bot"
- name: Create the release branch
run: git checkout -b release/v${{ github.event.inputs.version-number }}
- name: Push the Relese branch
run: git push --set-upstream origin release/v${{ github.event.inputs.version-number }}