From 6c7ba32a0eb4f49ce8ceeccfddabd34ec4a9851b Mon Sep 17 00:00:00 2001 From: JSONbored <49853598+JSONbored@users.noreply.github.com> Date: Mon, 30 Mar 2026 17:28:05 -0600 Subject: [PATCH] Fix awesome-unraid sync for protected main --- .github/workflows/build.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab2e22a..9069366 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -356,8 +356,20 @@ jobs: cp mem0-aio.xml target-repo/mem0-aio.xml mkdir -p target-repo/icons cp assets/mem0.jpeg target-repo/icons/mem0.jpeg - cd target-repo - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git add mem0-aio.xml icons/mem0.jpeg - git diff --quiet && git diff --staged --quiet || (git commit -m "chore: auto-sync mem0-aio assets from upstream" && git push) + + - name: Create sync pull request + if: ${{ steps.token.outputs.enabled == 'true' }} + uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 + with: + token: ${{ secrets.SYNC_TOKEN }} + path: target-repo + add-paths: | + mem0-aio.xml + icons/mem0.jpeg + commit-message: "chore: auto-sync mem0-aio assets from upstream" + branch: "sync-awesome-unraid/mem0-aio" + delete-branch: true + base: main + title: "chore: sync mem0-aio template assets" + body: | + Automated sync from `JSONbored/mem0-aio`.