From e87a48b458c6a56522b81bd415c7b006fae1e505 Mon Sep 17 00:00:00 2001 From: Neeptossss Date: Mon, 20 Nov 2023 16:57:00 +0100 Subject: [PATCH] ci(mirror): add mirror job --- .github/workflows/mirror.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/mirror.yaml diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml new file mode 100644 index 0000000..73dcc45 --- /dev/null +++ b/.github/workflows/mirror.yaml @@ -0,0 +1,28 @@ +name: Mirroring to Epitech repository on GitHub + +env: + MIRROR_SSH: git@github.com:EpitechPromo2026/B-DOP-500-NCE-5-1-whanos-gwenael.hubler.git + +on: + push: + branches: + - main + +jobs: + mirror: + name: Mirror repository + permissions: + contents: read + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Mirror repository + uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: + ${{ env.MIRROR_SSH }} + ssh_private_key: + ${{ secrets.GIT_SSH_PRIVATE_KEY }}