-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.02 KB
/
tag.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Bump Version
on:
pull_request_target:
types:
- closed
workflow_dispatch:
inputs:
bumpLevel:
description: 'Version Type'
required: true
default: 'minor'
type: choice
options:
- major
- minor
- patch
jobs:
tag_merge:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_manual:
if: "${{ github.event.inputs.bumpLevel != '' }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: ${{ inputs.bumpLevel }}