Skip to content

Commit 070bd6a

Browse files
committed
fix(workflow): Fixed synchronization github action authorization.
Now uses Ly's SSH private key instead of a fine-grained token (that would have taken forever to be granted).
1 parent ff7ccd8 commit 070bd6a

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/epitech-sync.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@ on:
55
branches:
66
- main
77

8+
env:
9+
MIRROR_URL: git@github.com:EpitechPGE3-2025/G-DEV-500-REN-5-1-area-5.git
10+
811
jobs:
912
sync:
1013
runs-on: ubuntu-latest
1114

1215
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v4
16+
- uses: actions/checkout@v4
1517
with:
1618
fetch-depth: 0
1719

1820
- name: Push to Epitech repository
19-
run: |
20-
git config user.name "github-actions"
21-
git config user.email "actions@github.com"
22-
git remote add epitech https://x-access-token:${{ secrets.EPITECH_REPOSITORY_TOKEN }}@github.com/EpitechPGE3-2025/G-DEV-500-REN-5-1-area-5.git
23-
git push --mirror --force epitech
21+
uses: pixta-dev/repository-mirroring-action@v1
22+
with:
23+
target_repo_url:
24+
${{ env.MIRROR_URL }}
25+
ssh_private_key:
26+
${{ secrets.SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)