From 50b5fb92be8fe72748438716a00f2ee2f263f965 Mon Sep 17 00:00:00 2001 From: FangcatChina Date: Fri, 14 Aug 2026 10:51:04 +0800 Subject: feat: mirror for repo --- .github/workflows/sync_to_forgejo.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/sync_to_forgejo.yml (limited to '.github/workflows/sync_to_forgejo.yml') diff --git a/.github/workflows/sync_to_forgejo.yml b/.github/workflows/sync_to_forgejo.yml new file mode 100644 index 0000000..f8d7637 --- /dev/null +++ b/.github/workflows/sync_to_forgejo.yml @@ -0,0 +1,20 @@ +name: Force Push to Any Remote Repo + +on: + push: + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Force push to target repository + env: + TARGET_REPO_URL: ${{ secrets.TARGET_REPO_URL }} + run: | + git remote add target ${TARGET_REPO_URL} + git push --force target \ No newline at end of file -- cgit v1.3