diff --git a/.github/workflows/sync-mirrors.yml b/.github/workflows/sync-mirrors.yml new file mode 100644 index 0000000..44238ee --- /dev/null +++ b/.github/workflows/sync-mirrors.yml @@ -0,0 +1,41 @@ +name: Sync mirrors + +on: + push: + branches: + - master + +jobs: + sync-gitlab: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Sync GitLab mirror + uses: yesolutions/mirror-action@v0.7.0 + with: + REMOTE: 'ssh://git@gitlab.com/arcctgx/ARver.git' + GIT_SSH_PRIVATE_KEY: ${{ secrets.ARVER_SYNC_PRIVATE_SSH_KEY }} + GIT_SSH_NO_VERIFY_HOST: true + PUSH_ALL_REFS: false + + sync-codeberg: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Sync Codeberg mirror + uses: yesolutions/mirror-action@v0.7.0 + with: + REMOTE: 'ssh://git@codeberg.org/arcctgx/ARver.git' + GIT_SSH_PRIVATE_KEY: ${{ secrets.ARVER_SYNC_PRIVATE_SSH_KEY }} + GIT_SSH_NO_VERIFY_HOST: true + PUSH_ALL_REFS: false