From 3ad782cf620f34f4d59e101eba33fa65913966c2 Mon Sep 17 00:00:00 2001 From: Xavier Mitault Date: Mon, 18 Sep 2023 10:37:08 +0200 Subject: [PATCH] CICD: Add mirroring --- .github/workflows/mirror.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 00000000..c5ece6a6 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,24 @@ +name: Publish + +on: [push, pull_request] + +env: + MIRROR_URL: git@github.com:EpitechPromo2026/B-CPP-500-TLS-5-1-rtype-xavier.mitault.git + +jobs: + publish: + runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' }} + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - uses: pixta-dev/repository-mirroring-action@v1 + if: github.repository != 'EpitechPromo2026/B-CPP-500-TLS-5-1-rtype-xavier.mitault.git' + with: + target_repo_url: + ${{ env.MIRROR_URL }} + ssh_private_key: + ${{ secrets.SSH_KEY }}