From 7c6e41289d35201fb44e002157a67633691cb3db Mon Sep 17 00:00:00 2001 From: Igor Krauch Date: Wed, 13 May 2026 16:51:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B5=D1=80=D0=BA=D0=B0=D0=BB=D0=BE=20/?= =?UTF-8?q?=20Mirror=20to=20Codeberg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Создание зеркала на Codeberg.org Create a mirror on Codeberg.org --- .github/workflows/mirror-to-codeberg.yml | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/mirror-to-codeberg.yml diff --git a/.github/workflows/mirror-to-codeberg.yml b/.github/workflows/mirror-to-codeberg.yml new file mode 100644 index 000000000..20c8634d8 --- /dev/null +++ b/.github/workflows/mirror-to-codeberg.yml @@ -0,0 +1,38 @@ +name: Mirror to Codeberg + +on: + push: + branches: + - main + workflow_dispatch: + +concurrency: + group: mirror-to-codeberg + cancel-in-progress: true + +permissions: + contents: read + +jobs: + mirror: + runs-on: ubuntu-latest + + steps: + - name: Checkout GitHub repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Push main branch to Codeberg + env: + CODEBERG_TOKEN: ${{ secrets.CODEBERG_MIRROR_TOKEN }} + run: | + set -euo pipefail + + git config user.name "github-actions" + git config user.email "github-actions@github.com" + + git remote remove codeberg 2>/dev/null || true + git remote add codeberg "https://igareck:${CODEBERG_TOKEN}@codeberg.org/igareck/vpn-configs-for-russia.git" + + git push codeberg HEAD:main --force