Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

chore: update make branch workflow #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
42 changes: 0 additions & 42 deletions .github/bin/make-branch.sh

This file was deleted.

10 changes: 7 additions & 3 deletions .github/workflows/make-branch.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Copy link
Contributor

Choose a reason for hiding this comment

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

empty line?

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
Expand All @@ -8,7 +9,7 @@ on:
required: true
branchfrom:
description: 'The source branch from which to branch, eg., main'
default: 'master'
default: 'main'
Copy link
Contributor

Choose a reason for hiding this comment

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

I see this is running on ubuntu-latest. Should that be 20.04 for consistency with all other build scripts?

forceflag:
description: 'To force creation of .x branch, use --force flag here'
default: ''
Expand All @@ -24,5 +25,8 @@ jobs:
run: |
git config --global user.name "Mykhailo Kuznietsov"
git config --global user.email "[email protected]"
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
.github/bin/make-branch.sh --branch ${{ github.event.inputs.branch }} --branchfrom ${{ github.event.inputs.branchfrom }} ${{ github.event.inputs.forceflag }}
curl 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 }}
Copy link
Contributor

Choose a reason for hiding this comment

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

missing newline