From e5f7391b8965011dd90bbb0f843c727790b5a04b Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 25 Dec 2024 14:20:36 +0900 Subject: [PATCH 1/2] chore: add YAML file --- .github/workflows/mirror.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..6826de7 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,23 @@ +name: Mirror to Codeberg + +on: + push: + branches: + - main + - dzgui + - testing + - release/5.6.0-beta.20 + workflow_dispatch: + +jobs: + mirror-to-codeberg: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: pixta-dev/repository-mirroring-action@v1 + if: ${{ vars.GIT_REMOTE != '' }} + with: + target_repo_url: ${{ vars.GIT_REMOTE }} + ssh_private_key: ${{ secrets.GIT_SSH_PRIVATE_KEY }} From 8c33a1b371699a1898bd72e1e20097d6c7cea66b Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 25 Dec 2024 14:21:24 +0900 Subject: [PATCH 2/2] chore: drop branch logic --- .github/workflows/mirror.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 6826de7..b4cf79b 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -2,11 +2,6 @@ name: Mirror to Codeberg on: push: - branches: - - main - - dzgui - - testing - - release/5.6.0-beta.20 workflow_dispatch: jobs: