From 11a72074e7253f71dc0750778502d6afe2db11af Mon Sep 17 00:00:00 2001 From: undeaD_D <8116188+undeaDD@users.noreply.github.com> Date: Sun, 2 Nov 2025 14:20:46 +0100 Subject: [PATCH] Add GitHub Actions workflow to mirror to Gitea --- .github/workflows/mirror-to-gittea.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/mirror-to-gittea.yml diff --git a/.github/workflows/mirror-to-gittea.yml b/.github/workflows/mirror-to-gittea.yml new file mode 100644 index 0000000..282af33 --- /dev/null +++ b/.github/workflows/mirror-to-gittea.yml @@ -0,0 +1,24 @@ +name: Mirror to Gitea + +on: + push: + workflow_dispatch: + +jobs: + mirror: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Mirror to Gitea + env: + GITEA_URL: ${{ secrets.GITEA_URL }} + GITEA_USERNAME: ${{ secrets.GITEA_USERNAME }} + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + run: | + git remote add gitea https://${GITEA_USERNAME}:${GITEA_TOKEN}@${GITEA_URL} + git push --quiet --mirror gitea