From dd9a3cc62767c21cc76fd474d3104982f17a7ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1z=20Zengin?= Date: Mon, 24 Nov 2025 18:56:04 +0300 Subject: [PATCH] git: add workflow for auto mirroring git.yzbruh.space/YZBruh/pmt-renovated. --- .github/workflows/fetch-changes.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/fetch-changes.yml diff --git a/.github/workflows/fetch-changes.yml b/.github/workflows/fetch-changes.yml new file mode 100644 index 0000000..03bae4a --- /dev/null +++ b/.github/workflows/fetch-changes.yml @@ -0,0 +1,25 @@ +name: Mirror External Repo to GitHub + +on: + schedule: + - cron: '0 * * * *' + workflow_dispatch: + +jobs: + mirror: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Mirror external repo + run: | + git config --global user.name "github-actions" + git config --global user.email "actions@github.com" + git clone --mirror https://git.yzbruh.space/YZBruh/pmt-renovated.git temp-mirror + cd temp-mirror + git remote add github https://github.com/ShawkTeam/pmt-renovated + git push --mirror github || true