-
Notifications
You must be signed in to change notification settings - Fork 131
29 lines (28 loc) · 906 Bytes
/
Copy pathgithub_to_codeberg.yml
File metadata and controls
29 lines (28 loc) · 906 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
# Sync repo to the Forgejo mirror https://codeberg.org/Recommendations/Mirror_to_Codeberg
name: Repo sync (GitHub -> Forgejo)
on:
push:
branches:
- '**'
workflow_dispatch: # Manual dispatch
schedule:
- cron: "0 */12 * * *"
jobs:
sync-repo-to-forgejo:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Gather facts"
run: |
echo "Repo variables:"
echo " FORGEJO_PUSH_URL: ${{ vars.FORGEJO_BASE_URL }}${{ vars.FORGEJO_REPO }}.git"
echo " FORGEJO_USERNAME: ${{ vars.FORGEJO_USERNAME }}"
- name: "Sync repo"
uses: spyoungtech/mirror-action@master
with:
REMOTE: "https://codeberg.org/qualcoder/QualCoder.git"
GIT_USERNAME: ${{ vars.FORGEJO_USERNAME }}
GIT_PASSWORD: ${{ secrets._FORGEJO_TOKEN }}