Sync #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 imbroglius/treble . | |
- name: Sync with TrebleDroid | |
run: | | |
docker run --rm \ | |
--name td \ | |
--volume ${{ github.workspace }}/patches:/aosp/imbroglios_gsi/patches \ | |
imbroglius/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 |