Skip to content

Commit 781349f

Browse files
committed
Add GitHub Actions workflow to create a branch from tags. Introduced a new workflow file that triggers on tag pushes matching the pattern 'v*', automating the branch creation process using the lablnet/create-branch-from-tag action.
1 parent 90dd717 commit 781349f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/branch.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Create Branch from Tag
2+
3+
on:
4+
push:
5+
# Sequence of patterns matched against refs/tags
6+
tags:
7+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+
jobs:
10+
create-branch:
11+
permissions:
12+
contents: write
13+
name: Create Branch from Tag
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Create Branch
20+
id: create_branch
21+
uses: lablnet/[email protected]
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
tag_name: ${{ github.ref }}
26+
owner: ${{ github.repository_owner }}
27+
repo: ${{ github.event.repository.name }}
28+

0 commit comments

Comments
 (0)