-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 772 Bytes
/
Copy pathsync-dev.yml
File metadata and controls
31 lines (27 loc) · 772 Bytes
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
name: Sync Dev from Master
on:
pull_request:
branches: [master]
types: [closed]
workflow_dispatch:
permissions:
contents: write
jobs:
sync:
if: >
github.event_name == 'workflow_dispatch' ||
(github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'release'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Sync dev from master
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout dev
git merge master --no-edit
git push origin dev