From 14665db94b8eec08ee9729de51d4093e670523ca Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 23 Apr 2023 16:40:17 +0100 Subject: [PATCH] Add an action to mirror to CodeBerg --- .github/workflows/sync-mirror.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/sync-mirror.yml diff --git a/.github/workflows/sync-mirror.yml b/.github/workflows/sync-mirror.yml new file mode 100644 index 0000000..1d3df91 --- /dev/null +++ b/.github/workflows/sync-mirror.yml @@ -0,0 +1,16 @@ +# Pushes the contents of the repo to the Codeberg mirror +name: 🪞 Mirror to Codeberg +on: + workflow_dispatch: + schedule: + - cron: '30 2 * * 0' # At 02:30 on Sunday +jobs: + codeberg: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: { fetch-depth: 0 } + - uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: git@codeberg.org:alicia/portainer-templates.git + ssh_private_key: ${{ secrets.CODEBERG_SSH }}