Skip to content

Commit 63f9c32

Browse files
authored
[MOSIP-20028] added action for tagging
1 parent 33e0c47 commit 63f9c32

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/tag.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Tagging of repos
2+
3+
env:
4+
tag: v1.2.3
5+
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Tag to be published'
11+
required: true
12+
default: 'v1.2.3'
13+
type: string
14+
body:
15+
description: 'Release body message'
16+
required: true
17+
default: 'Changes in this Release'
18+
type: string
19+
pre-release:
20+
description: 'Pre-release? True/False'
21+
required: true
22+
default: False
23+
type: string
24+
25+
jobs:
26+
build:
27+
name: Create Release
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v2
32+
- name: Create Release
33+
id: create_release
34+
uses: actions/create-release@v1
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
37+
with:
38+
tag_name: ${{ github.event.inputs.tag }}
39+
release_name: ${{ github.event.inputs.tag }}
40+
body: |
41+
${{ github.event.inputs.body }}
42+
draft: false
43+
prerelease: ${{fromJSON(github.event.inputs.pre-release)}}

0 commit comments

Comments
 (0)