-
Notifications
You must be signed in to change notification settings - Fork 23
51 lines (43 loc) · 1.43 KB
/
release_pull_requests.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
51
name: Release pull requests
on:
push:
tags:
- prerelease/*
jobs:
prerelease:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
name: Checkout all
with:
fetch-depth: 0
- uses: olegtarasov/get-tag@v2.1
id: tagName
with:
tagRegex: 'prerelease\/(\d*\.\d*\.\d*)'
- name: Bump version
run: |
fastlane bump version:${{ steps.tagName.outputs.tag }}
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
title: Release ${{ steps.tagName.outputs.tag }}
body: Release PR
labels: autocreated
branch: release/${{ steps.tagName.outputs.tag }}
base: develop
- uses: actions/checkout@v2
with:
ref: main
- name: Reset main branch
run: |
git fetch origin release/${{ steps.tagName.outputs.tag }}:release/${{ steps.tagName.outputs.tag }}
git reset --hard release/${{ steps.tagName.outputs.tag }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: Release ${{ steps.tagName.outputs.tag }}
body: Release PR
labels: autocreated
branch: release/${{ steps.tagName.outputs.tag }}
base: main