forked from ubiquity/ubiquity-dollar
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1017 Bytes
/
development-ci.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
name: Development to Development-CI Sync
on:
push:
branches:
- development
permissions:
contents: write
jobs:
sync:
runs-on: ubuntu-latest
name: Sync changes from development to development-ci
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run merge
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git checkout development-ci
echo "debug information"
git status
git branch -avv
git log --graph --pretty=oneline --abbrev-commit --all -20
echo "git diff"
git diff development
echo "== merging =="
(git merge development\
&& git push\
&& echo "successfully rebased features to development-ci")\
|| (echo "cannot automatically sync due to merge conflicts" && exit 1)