From 19fe2509fb6b10b9a939ba5505dd296f096093d2 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 15 Jun 2024 10:17:53 +0200 Subject: [PATCH] ci: Add new workflow for mirroring repo to Codeberg Signed-off-by: Steffen Vogel --- .github/workflows/mirror.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/mirror.yaml diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml new file mode 100644 index 0000000..72121c3 --- /dev/null +++ b/.github/workflows/mirror.yaml @@ -0,0 +1,26 @@ +# SPDX-FileCopyrightText: 2023-2024 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + +# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json +--- +name: Mirror to Codeberg + +on: [push, delete] + +jobs: + build: + name: Mirror + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: yesolutions/mirror-action@master + with: + REMOTE: git@codeberg.org:${{ github.repository }}.git + GIT_SSH_PRIVATE_KEY: ${{ secrets.CODEBERG_SSH_KEY }} + GIT_SSH_NO_VERIFY_HOST: "true" +