File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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`.
You can’t perform that action at this time.
0 commit comments