-
Notifications
You must be signed in to change notification settings - Fork 61
42 lines (36 loc) · 1.15 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Sync
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
sync:
runs-on: self-hosted
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Image
run: docker build -f build/Dockerfile -t ponces/treble .
- name: Sync with TrebleDroid
run: |
docker run --rm \
--name td \
--volume ${{ github.workspace }}/patches:/aosp/treble_aosp/patches \
ponces/treble treblesync
cp -r patches/trebledroid patches/patches
cd patches
zip -rq patches-for-developers.zip patches
- name: Commit Patches
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add patches/trebledroid
git commit -m "feat: sync with latest sources of TrebleDroid"
git push
- name: Upload Patches
uses: actions/upload-artifact@v4
with:
name: patches-for-developers
path: patches/patches-for-developers.zip