-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.01 KB
/
update-staging.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
name: Update staging and development
on:
push:
branches:
- master
pull_request:
types: [labeled, synchronize]
jobs:
update-staging:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'On Staging')
steps:
- uses: actions/checkout@v4
- name: 🖇️ Merge current branch into staging
uses: devmasx/[email protected]
with:
type: now
target_branch: 'staging'
github_token: ${{ github.token }}
update-development:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'On Staging') || contains(github.event.pull_request.labels.*.name, 'On Development')
steps:
- uses: actions/checkout@v4
- name: 🖇️ Merge current branch into development
uses: devmasx/[email protected]
with:
type: now
target_branch: 'development'
github_token: ${{ github.token }}