-
-
Notifications
You must be signed in to change notification settings - Fork 39
30 lines (26 loc) · 762 Bytes
/
Copy pathgitea-sync.yml
File metadata and controls
30 lines (26 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Sync to Gitea
on:
push:
branches:
- "main"
permissions:
contents: read
jobs:
sync:
name: Sync to Gitea
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Gitea
env:
SOURCE_REPO: "https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }}.git"
DESTINATION_REPO: "https://techengine:${{ secrets.GITEA_TOKEN }}@gitea.com/techengine/goscrapy.git"
uses: wei/git-sync@v3
with:
source_repo: ${{ env.SOURCE_REPO }}
source_branch: "main"
destination_repo: ${{ env.DESTINATION_REPO }}
destination_branch: "main"