Skip to content

Commit 282dd24

Browse files
committed
Fix awesome-unraid sync for protected main
1 parent 1aa5f4a commit 282dd24

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,18 @@ jobs:
357357
if: ${{ env.SYNC_ENABLED == 'true' }}
358358
run: |
359359
cp simplelogin-aio.xml target-repo/simplelogin-aio.xml
360-
cd target-repo
361-
git config user.name "github-actions[bot]"
362-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
363-
git add simplelogin-aio.xml
364-
git diff --quiet && git diff --staged --quiet || (git commit -m "chore: auto-sync simplelogin-aio.xml from upstream" && git push)
360+
361+
- name: Create sync pull request
362+
if: ${{ env.SYNC_ENABLED == 'true' }}
363+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
364+
with:
365+
token: ${{ secrets.SYNC_TOKEN }}
366+
path: target-repo
367+
add-paths: simplelogin-aio.xml
368+
commit-message: "chore: auto-sync simplelogin-aio.xml from upstream"
369+
branch: "sync-awesome-unraid/simplelogin-aio"
370+
delete-branch: true
371+
base: main
372+
title: "chore: sync simplelogin-aio template"
373+
body: |
374+
Automated sync from `JSONbored/simplelogin-aio`.

0 commit comments

Comments
 (0)