Update fetch.yml

Signed-off-by: Ryananana <36809659+Ryananana@users.noreply.github.com>
This commit is contained in:
Ryananana 2024-05-20 21:29:15 +08:00 committed by GitHub
parent d13da69b7a
commit 3f9dd9719f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@
name: Merge upstream branches
on:
schedule:
- cron: '* * * * *'
- cron: '5 * * * *'
workflow_dispatch:
jobs:
merge:
@ -17,7 +17,8 @@ jobs:
git clone https://${{ secrets.PERSONAL_TOKEN }}@github.com/Ryananana/sing-box.git tmp
cd tmp
git remote add upstream https://github.com/SagerNet/sing-box.git
git reset .
git fetch upstream
git fetch --all
git reset --hard origin/dev-next
git pull
git merge upstream/dev-next
git push origin dev-next