initial commit

This commit is contained in:
2026-08-18 15:59:40 +03:00
commit 6ba5b43dda
2 changed files with 100 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Mirror GitHub repos to Gitea
on:
schedule:
# Runs at 00:00 UTC daily. Adjust if you want midnight EAT (UTC+3) instead — see note below.
- cron: "0 0 * * *"
workflow_dispatch: {} # allows manual trigger from the Actions tab too
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout (for the script)
uses: actions/checkout@v4
- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq
- name: Mirror all repos to Gitea
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITEA_URL: ${{ secrets.GITEA_URL }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_OWNER: ${{ secrets.GITEA_OWNER }}
run: |
chmod +x ./mirror-github-to-gitea.sh
./mirror-github-to-gitea.sh