From f3853539d0fddb62a88049a7384f6c2fe5ee409c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 19 Nov 2024 13:00:40 +0100 Subject: [PATCH] add repo sync for github add repo sync for github --- .github/workflows/repo-sync.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/repo-sync.yml diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml new file mode 100644 index 000000000..8f734cd4d --- /dev/null +++ b/.github/workflows/repo-sync.yml @@ -0,0 +1,25 @@ +name: Github<->Gitea sync +on: + schedule: + - cron: "39 * * * *" + workflow_dispatch: + +permissions: + contents: write + +jobs: + repo-sync: + if: github.repository_owner == 'clan-lol' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - name: repo-sync + uses: repo-sync/github-sync@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + source_repo: "https://git.clan.lol/clan/clan-core.git" + source_branch: "main" + destination_branch: "main"