-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.27 KB
/
version-bump-master.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
46
47
48
49
50
name: Version bump
on:
pull_request:
types:
- closed
branches: ["master"]
jobs:
bump-minor-version-on-master:
if: github.event.pull_request.merged == true
name: Bump the version
permissions:
contents: write
runs-on: ubuntu-latest #self-hosted
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Automated Version Bump
uses: phips28/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version-type: 'minor'
target-branch: 'master'
commit-message: 'CI: bumped version to {{version}} because a pull request was merged into master'
merge-master-into-develop:
needs: bump-minor-version-on-master # has to eb run after version has been bumped
if: github.event.pull_request.merged == true
name: Merge master into develop
permissions:
contents: write
runs-on: ubuntu-latest #self-hosted
steps:
- uses: actions/checkout@v2
- uses: everlytic/[email protected]
with:
github_token: ${{ github.token }}
source_ref: 'master'
target_branch: 'develop'
commit_message_template: 'CI: Merged {source_ref} into target {target_branch} after version bump'