Create sync.yml

This commit is contained in:
sahibzadafahad-whizpool 2023-12-11 16:15:19 +05:00 committed by GitHub
parent af00512cf7
commit f94349bd88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.github/workflows/sync.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Sync with Original Repo
on:
schedule:
- cron: '*/5 * * * *' # Set the schedule as needed
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Sync with Upstream
run: |
git remote add upstream https://github.com/Sanster/lama-cleaner.git
git fetch upstream
git merge upstream/main
git push