This repository has been archived by the owner on May 4, 2024. It is now read-only.
generated from ecarlson94/userspace
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.94 KB
/
createReleasePullRequests.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
50
name: Create Release Pull Requests
on:
push:
branches:
- 'release*'
jobs:
create-main-pr:
name: Create Release PR Against main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Branch Info
id: branch-info
run: echo "::set-output name=name::${REF_TRIGGER##*/}"
env:
REF_TRIGGER: ${{ github.ref }}
- name: Create Pull Request
uses: repo-sync/pull-request@v2
with:
destination_branch: "main" # If blank, default: master
pr_title: "Pulling ${{ steps.branch-info.outputs.name }} into main +semver: minor" # Title of pull request
pr_body: ":crown: *An automated PR*" # Full markdown support, requires pr_title to be set
pr_reviewer: "walawrenci" # Comma-separated list (no spaces)
pr_label: "release" # Comma-separated list (no spaces)
github_token: ${{ secrets.GITHUB_TOKEN }}
create-develop-pr:
name: Create Release PR Against develop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Branch Info
id: branch-info
run: echo "::set-output name=name::${REF_TRIGGER##*/}"
env:
REF_TRIGGER: ${{ github.ref }}
- name: Create Pull Request
uses: repo-sync/pull-request@v2
with:
destination_branch: "develop" # If blank, default: master
pr_title: "Pulling ${{ steps.branch-info.outputs.name }} into develop" # Title of pull request
pr_body: ":crown: *An automated PR*" # Full markdown support, requires pr_title to be set
pr_reviewer: "walawrenci" # Comma-separated list (no spaces)
pr_label: "release" # Comma-separated list (no spaces)
github_token: ${{ secrets.GITHUB_TOKEN }}