diff --git a/.gitea/workflows/mirror-to-github.yml b/.gitea/workflows/mirror-to-github.yml index 4ef9a3fa..5fc028bc 100644 --- a/.gitea/workflows/mirror-to-github.yml +++ b/.gitea/workflows/mirror-to-github.yml @@ -4,9 +4,6 @@ on: push: branches: - '**' - delete: - branches: - - '**' jobs: mirror: @@ -14,6 +11,8 @@ jobs: steps: - name: Push to GitHub run: | + cd /tmp + git clone --mirror https://gitea.resolutionflow.com/chihlasm/resolutionflow.git repo + cd repo git remote add github https://x-access-token:${{ secrets.GH_MIRROR_TOKEN }}@github.com/${{ secrets.GH_MIRROR_REPO }} - git push github --all --force - git push github --tags --force \ No newline at end of file + git push github --mirror --force \ No newline at end of file