-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (44 loc) · 1.21 KB
/
version-bump.yaml
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
46
47
48
49
name: 'Update version'
on:
pull_request:
types:
- opened
branches:
- main
permissions:
contents: write
jobs:
major_version:
if: ${{ startsWith(github.event.pull_request.title, 'FREEZE') }}
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: 'actions/checkout@v2'
with:
ref: ${{ github.ref }}
- name: 'Automated Version Bump'
id: version-bump
uses: 'phips28/gh-action-bump-version@master'
with:
version-type: 'major'
skip-tag: 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
minor_version:
if: ${{ !startsWith(github.event.pull_request.title, 'FREEZE') }}
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: 'actions/checkout@v2'
with:
ref: ${{ github.ref }}
- name: 'Automated Version Bump'
id: version-bump
uses: 'phips28/gh-action-bump-version@master'
with:
patch-wording: 'fix,patch,fixing,patching'
minor-wording: 'improvement,'
default: 'minor'
skip-tag: 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}