Skip to content

Sync

Sync #22

Workflow file for this run

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