Skip to content

Commit 922963c

Browse files
committed
feat(workflow): Added a job to mirror the Wiki.
1 parent 39d6655 commit 922963c

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/epitech-sync.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ on:
77

88
env:
99
MIRROR_URL: git@github.com:EpitechPGE3-2025/G-DEV-500-REN-5-1-area-5.git
10+
MIRROR_WIKI_URL: git@github.com:EpitechPGE3-2025/G-DEV-500-REN-5-1-area-5.wiki.git
1011

1112
jobs:
12-
sync:
13+
sync-code:
1314
runs-on: ubuntu-latest
1415
steps:
1516
- uses: actions/checkout@v4
@@ -22,3 +23,20 @@ jobs:
2223
${{ env.MIRROR_URL }}
2324
ssh_private_key:
2425
${{ secrets.SSH_PRIVATE_KEY }}
26+
27+
sync-wiki:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout wiki repo
31+
run: |
32+
git clone --mirror "git@github.com:${{ github.repository }}.wiki.git" source.wiki
33+
- name: Push wiki to Epitech repository
34+
run: |
35+
cd source.wiki
36+
git push --mirror ${{ env.MIRROR_WIKI_URL }}
37+
env:
38+
GIT_SSH_COMMAND: 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no'
39+
- name: Setup SSH key
40+
uses: webfactory/ssh-agent@v0.9.0
41+
with:
42+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)