This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# HMS Networks Solution Center | ||
# Ewon JTK Java Library Release Branch Script for GitHub Actions | ||
# Version: 1.0 | ||
|
||
name: Ewon Java Library Release Branch Builder | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0 | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
name: Create Release Branch | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Branch name # Build a branch name from tag (vX.Y) in release/X.Y format | ||
id: branch_name | ||
run: | | ||
tag="${GITHUB_REF#refs/tags/}" | ||
tagRevision="${tag:1}" | ||
branchPrefix="release/" | ||
branchName="$branchPrefix$tagRevision" | ||
echo ::set-output name=SOURCE_TAG::"$branchName" | ||
- name: Create Branch | ||
uses: peterjgrainger/action-create-branch@v2.0.1 | ||
with: | ||
branch: ${{ steps.branch_name.outputs.SOURCE_TAG }} |