From 37e8f654ce3c7814be3185fd961593cabd9cff49 Mon Sep 17 00:00:00 2001 From: Igor Krauch Date: Wed, 13 May 2026 19:11:47 +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=20SourceHut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Создание зеркала на git.sr.ht (SourceHut.org) Create a mirror on git.sr.ht (SourceHut.org) --- .github/workflows/mirror-to-sourcehut.yml | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/mirror-to-sourcehut.yml diff --git a/.github/workflows/mirror-to-sourcehut.yml b/.github/workflows/mirror-to-sourcehut.yml new file mode 100644 index 000000000..98abd1025 --- /dev/null +++ b/.github/workflows/mirror-to-sourcehut.yml @@ -0,0 +1,50 @@ +name: Mirror to SourceHut + +on: + push: + branches: + - main + workflow_dispatch: + +concurrency: + group: mirror-to-sourcehut + 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: Configure HTTPS auth for SourceHut + env: + SOURCEHUT_TOKEN: ${{ secrets.SOURCEHUT_TOKEN }} + run: | + set -euo pipefail + + cat > ~/.netrc </dev/null || true + git remote add sourcehut "https://git.sr.ht/~igareck/vpn-configs-for-russia" + + git push sourcehut HEAD:main --force