-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.32 KB
/
on-version-update.yml
File metadata and controls
56 lines (47 loc) · 1.32 KB
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
51
52
53
54
55
56
name: On Version Update Workflows
on:
push:
paths-ignore:
- 'package.json'
branches:
- 'master'
jobs:
bump-version:
name: 'Update Version'
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }}
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Bump Version and Create Tag
uses: phips28/gh-action-bump-version@master
with:
tag-prefix: ''
token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }}
create-version-update-pr:
name: 'Create Version Update PR'
runs-on: ubuntu-latest
needs: bump-version
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }}
ref: develop
- name: Hard Reset Develop from Master
run: |
git fetch origin master:master
git reset --hard master
- name: Create PR
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }}
branch: workflow/version-update
delete-branch: true
base: develop
title: 'Workflow/version update'