File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88env :
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
1112jobs :
12- sync :
13+ sync-code :
1314 runs-on : ubuntu-latest
1415 steps :
1516 - uses : actions/checkout@v4
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 }}
You can’t perform that action at this time.
0 commit comments