Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Add library release branch builder
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjhawk committed Feb 12, 2021
1 parent 4f72dd5 commit 5b0f7c6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ewon-java-lib-release-branch.yml
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 }}

0 comments on commit 5b0f7c6

Please sign in to comment.