Skip to content

Commit

Permalink
ci: Add new workflow for mirroring repo to Codeberg
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
  • Loading branch information
stv0g committed Jun 15, 2024
1 parent de8b87f commit 0264826
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# SPDX-FileCopyrightText: 2023-2024 Steffen Vogel <post@steffenvogel.de>
# 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"

0 comments on commit 0264826

Please sign in to comment.