Skip to content

Commit c46c6fd

Browse files
Update build-prod.yml
1 parent 286fe2d commit c46c6fd

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/build-prod.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,25 @@ jobs:
99
runs-on: [self-hosted, dev] # Cible le runner de production
1010

1111
steps:
12-
- name: Configurer Git pour éviter les invites
12+
- name: Configurer Git avec le token
1313
shell: cmd
1414
run: |
15+
git config --global url."https://${{ secrets.AUTOMATISATION_BUILD }}@github.com".insteadOf "https://github.com"
1516
git config --global credential.helper store
1617
echo "https://${{ secrets.AUTOMATISATION_BUILD }}:x-oauth-basic@github.com" > %USERPROFILE%\.git-credentials
1718
1819
- name: Checkout du code
1920
uses: actions/checkout@v4
2021
with:
2122
token: ${{ secrets.AUTOMATISATION_BUILD }}
22-
23-
- name: Configurer l'URL du sous-module avec le token
24-
shell: cmd
25-
run: |
26-
cd /d "%GITHUB_WORKSPACE%"
27-
git config --file=.gitmodules submodule.Common.url "https://${{ secrets.AUTOMATISATION_BUILD }}@github.com/dl-Solutions-dev/Common-libs.git"
28-
29-
- name: Cloner les sous-modules avec le token
30-
shell: cmd
31-
run: |
32-
cd /d "%GITHUB_WORKSPACE%"
33-
git submodule update --init --recursive --depth 1
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.AUTOMATISATION_BUILD }}
23+
submodules: recursive
3624

3725
- name: Vérifier les sous-modules
3826
shell: cmd
3927
run: |
40-
cd /d "%GITHUB_WORKSPACE%"
4128
git submodule status
42-
dir /s /b Common
29+
git submodule update --init --recursive --depth 1
30+
dir /s /b src\Common # Vérifie que le sous-module est bien cloné
4331
4432
- name: Créer le dossier de sortie
4533
shell: cmd

0 commit comments

Comments
 (0)