Skip to content

Commit a0f695d

Browse files
committed
Add automation instruction
1 parent 8008899 commit a0f695d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ Both work with gitea-github-sync, but given that Gitea does not allow the modifi
5050

5151
`gitea-github-sync sync` Migrates all repos not present in Gitea from Github
5252

53+
## Automate gitea-github-sync execution
54+
55+
There are multiple ways to automate the execution of gitea-github-sync. One of them is using cron:
56+
57+
First, execute `crontab -e` to open the cron configuration file in edit mode.
58+
59+
Then add the following line:
60+
```
61+
0 12 * * * gitea-github-sync sync
62+
```
63+
64+
This will execute the sync operation every day at twelve.
65+
5366
## Limitations
5467

5568
When using the migration feature of Gitea, a Github token must be passed for Gitea to continuously pull the new changes from Github.

0 commit comments

Comments
 (0)