Skip to content

Commit

Permalink
CICD: Add mirroring
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Sep 18, 2023
0 parents commit 3ad782c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish

on: [push, pull_request]

env:
MIRROR_URL: [email protected]: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 }}

0 comments on commit 3ad782c

Please sign in to comment.