-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 837 Bytes
/
branch.yml
File metadata and controls
26 lines (24 loc) · 837 Bytes
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
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Create Branch
jobs:
build:
permissions: # Read more at : https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
contents: write
name: Create Branch
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Branch
id: create_branch
uses: lablnet/create-branch-from-tag@v1.0.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref_name }}
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}