Skip to content

Commit 515fa39

Browse files
authored
Fix awesome-unraid sync for protected main (#16)
1 parent 0f1a58e commit 515fa39

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,18 @@ jobs:
368368
if: ${{ env.SYNC_ENABLED == 'true' }}
369369
run: |
370370
cp sure-aio.xml target-repo/sure-aio.xml
371-
cd target-repo
372-
373-
git config user.name "github-actions[bot]"
374-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
375-
376-
git add sure-aio.xml
377-
378-
git diff --quiet && git diff --staged --quiet || (git commit -m "chore: auto-sync sure-aio.xml from upstream" && git push)
371+
372+
- name: Create sync pull request
373+
if: ${{ env.SYNC_ENABLED == 'true' }}
374+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
375+
with:
376+
token: ${{ secrets.SYNC_TOKEN }}
377+
path: target-repo
378+
add-paths: sure-aio.xml
379+
commit-message: "chore: auto-sync sure-aio.xml from upstream"
380+
branch: "sync-awesome-unraid/sure-aio"
381+
delete-branch: true
382+
base: main
383+
title: "chore: sync sure-aio template"
384+
body: |
385+
Automated sync from `JSONbored/sure-aio`.

0 commit comments

Comments
 (0)