Skip to content

Mirror from Gitea to GitHub #1

Mirror from Gitea to GitHub

Mirror from Gitea to GitHub #1

Workflow file for this run

name: Mirror from Gitea to GitHub
on:
schedule:
- cron: '0 0 * * *' # Adjust this to your preferred schedule
workflow_dispatch: # Add this event to allow manual runs
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Fetch Gitea Repository
run: |
git fetch --prune --tags origin
git remote set-head origin -a
env:
GIT_REPO: 'https://git.howtoit.com/LoadingStill/Linux.git' # Change this to your Gitea repository URL
- name: Push to GitHub
run: |
git push --mirror https://${{ secrets.TOKEN_GITHUB }}@github.com/LoadingStill/Linux.git
env:
GITHUB_REPO: 'https://github.com/LoadingStill/Linux.git' # Change this to your GitHub repository URL