-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (43 loc) · 1.21 KB
/
update.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: ⏫ Sync Updates
on:
push:
branches:
- dev
- alpha
jobs:
alpha:
runs-on: ubuntu-latest
if: github.ref_name == 'dev'
steps:
- name: 💾 Checkout
uses: actions/checkout@v3
with:
ref: alpha
- name: 🛑 Reset promotion branch
run: |
git fetch origin ${{github.ref_name}}:${{github.ref_name}}
git reset --hard ${{github.ref_name}}
- name: 🆕 Create Pull Request
uses: peter-evans/[email protected]
with:
labels: automated pr
branch: ${{github.ref_name}}
title: chore(sync) Syncing changes from ${{github.ref_name}} to alpha
main:
runs-on: ubuntu-latest
if: github.ref_name == 'alpha'
steps:
- name: 💾 Checkout
uses: actions/checkout@v3
with:
ref: main
- name: 🛑 Reset promotion branch
run: |
git fetch origin ${{github.ref_name}}:${{github.ref_name}}
git reset --hard ${{github.ref_name}}
- name: 🆕 Create Pull Request
uses: peter-evans/[email protected]
with:
labels: automated pr
branch: ${{github.ref_name}}
title: chore(sync) Syncing changes from ${{github.ref_name}} to main