-
Notifications
You must be signed in to change notification settings - Fork 30
32 lines (31 loc) · 1.15 KB
/
make-branch.yaml
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
name: Create branch
on:
# to be run once every 3 weeks for a 7.yy.0 release, so we can get a stable 7.yy.x branch for use by downstream consumers
workflow_dispatch:
inputs:
branch:
description: 'The branch to create. Should be in format 7.yy.x'
required: true
branchfrom:
description: 'The source branch from which to branch, eg., main'
default: 'main'
forceflag:
description: 'To force creation of .x branch, use --force flag here'
default: ''
jobs:
build:
name: Create branch
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create branch
run: |
git config --global user.name "Mykhailo Kuznietsov"
git config --global user.email "[email protected]"
curl -sSL https://raw.githubusercontent.com/eclipse-che/che-release/main/make-branch.sh | bash -s -- \
--branch ${{ github.event.inputs.branch }} \
--branchfrom ${{ github.event.inputs.branchfrom }} \
--repo "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
${{ github.event.inputs.forceflag }}