forked from sonyxperiadev/device-sony-voyager
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 920 Bytes
/
repo-sync.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
name: repo-sync
on:
schedule:
- cron: "*/15 * * * *"
jobs:
repo-sync:
runs-on: ubuntu-18.04
steps:
- name: Define variables
run: |
echo "upstream=sonyxperiadev/device-sony-voyager" >> $GITHUB_ENV
echo "rebase_base=q-mr1" >> $GITHUB_ENV
echo "rebase_head=MartinX3/lineage-17.1" >> $GITHUB_ENV
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ env.rebase_head }}
- name: Define git author for rebase
run: |
git config user.email "[email protected]"
git config user.name "Martin Dünkelmann"
- uses: repo-sync/github-sync@v2
with:
source_repo: ${{ env.upstream }}
source_branch: "*"
destination_branch: "*"
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: git rebase origin/${{ env.rebase_base }} ${{ env.rebase_head }}
- run: git push --force-with-lease