From 86218fe91001858647288a40cebea21ff92d77ce Mon Sep 17 00:00:00 2001 From: Alex38Lyon <55714436+Alex38Lyon@users.noreply.github.com> Date: Wed, 21 Oct 2026 16:46:33 +0200 Subject: [PATCH] update --- .github/workflows/ScriptPython.yml | 28 +++++++++++++--------------- Synthese-PSM_LARRA-Full.thconfig | 13 ++++++------- 2 files changed, 19 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ScriptPython.yml b/.github/workflows/ScriptPython.yml index e8eab3a..cc3ebcb 100644 --- a/.github/workflows/ScriptPython.yml +++ b/.github/workflows/ScriptPython.yml @@ -1,4 +1,4 @@ -# Workflow d'exécution automatique des scripts python et de compilation Therion +# Workflow d'exécution automatique des scripts python et de compilation Therion (Full) name: ScriptPython on: push: @@ -484,11 +484,10 @@ jobs: echo "" git diff --stat - # ============================================================ - # 17.9. Vérification et configuration de PUSH_TOKEN + # 18. Vérification et configuration de PUSH_TOKEN # ============================================================ - - name: 17.9. Vérifier PUSH_TOKEN + - name: 18. Vérifier PUSH_TOKEN if: steps.changed.outputs.shp == 'true' || steps.changed.outputs.sql == 'true' || steps.changed.outputs.manual == 'true' shell: bash env: @@ -500,13 +499,13 @@ jobs: echo "========================================" echo "VÉRIFICATION DE PUSH_TOKEN" echo "========================================" - # 1. Vérifier la présence du secret + # 18.1 Vérifier la présence du secret if [ -z "${PUSH_TOKEN}" ]; then echo "::error::Le secret PUSH_TOKEN est absent ou vide." exit 1 fi - # 2. Vérifier la validité du jeton + # 18.2. Vérifier la validité du jeton echo "Vérification de l'identité GitHub..." if ! GH_USER="$(gh api user --jq '.login')"; then echo "::error::PUSH_TOKEN est invalide ou ne permet pas d'interroger l'API GitHub." @@ -514,7 +513,7 @@ jobs: fi echo "Jeton reconnu pour le compte : ${GH_USER}" - # 3. Vérifier l'accès au dépôt et les droits du compte + # 18.3. Vérifier l'accès au dépôt et les droits du compte echo "Vérification des droits sur le dépôt..." if ! PUSH_PERMISSION="$(gh api "repos/${REPOSITORY}" --jq '.permissions.push // false')"; then echo "::error::Impossible de vérifier les droits sur ${REPOSITORY}." @@ -526,7 +525,7 @@ jobs: fi echo "Le compte dispose des droits push sur le dépôt." - # 4. Vérifier que le dépôt Git courant est bien le dépôt attendu + # 18.4. Vérifier que le dépôt Git courant est bien le dépôt attendu REMOTE_URL="$(git remote get-url origin)" case "${REMOTE_URL}" in "https://github.com/${REPOSITORY}"|"https://github.com/${REPOSITORY}.git"|"git@github.com:${REPOSITORY}.git") @@ -538,8 +537,7 @@ jobs: ;; esac - # 5. Retirer les éventuels en-têtes Authorization configurés - # dans les niveaux local, global et système. + # 18.5. Retirer les éventuels en-têtes Authorization configurés dans les niveaux local, global et système. # Ne jamais afficher la valeur des en-têtes. for SCOPE in local global system; do git config "--${SCOPE}" --unset-all http.https://github.com/.extraheader 2>/dev/null || true @@ -552,23 +550,23 @@ jobs: echo "Authentification Git configurée pour PUSH_TOKEN." # ============================================================ - # 18. Commit + # 19. Commit # ============================================================ - - name: 18. Commit + - name: 19. Commit if: steps.changed.outputs.shp == 'true' || steps.changed.outputs.sql == 'true' || steps.changed.outputs.manual == 'true' uses: stefanzweifel/git-auto-commit-action@v7 env: COMMIT_DATE: ${{ steps.changed.outputs.commit_date }} with: - commit_message: "Auto-generate outputs from ScriptPython - ${{ env.COMMIT_DATE }}" + commit_message: "Auto-generate par ScriptPython - ${{ env.COMMIT_DATE }}" commit_user_name: "github-actions[bot]" commit_user_email: "41898282+github-actions[bot]@users.noreply.github.com" commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" # ============================================================ - # 19. MerginMaps Hook + # 20. MerginMaps Hook # ============================================================ - - name: 19. MerginMaps Hook + - name: 20. MerginMaps Hook if: steps.changed.outputs.shp == 'true' || steps.changed.outputs.manual == 'true' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Synthese-PSM_LARRA-Full.thconfig b/Synthese-PSM_LARRA-Full.thconfig index 732a065..1cf2f42 100644 --- a/Synthese-PSM_LARRA-Full.thconfig +++ b/Synthese-PSM_LARRA-Full.thconfig @@ -381,7 +381,6 @@ endlayout #export map -fmt xvi -layout xviexport -o Data/Complexe_Lonne_Peyret-Bourrugues-map.xvi #export map -proj extended -layout xviexport -fmt xvi -o Data/Complexe_Lonne_Peyret-Bourrugues-coupe.xvi - select MP-Synthese-PSM_LARRA-Plan-tot@Synthese-PSM_LARRA select MC-Synthese_PSM-Extended-tot@Synthese-PSM_LARRA @@ -397,7 +396,7 @@ export map -projection plan -fmt pdf -layout my_layout -o Outputs/Synthese-PSM_L # Export du fichier 3d pour Loch export model -enable all -o Outputs/Synthese-PSM_LARRA.lox # export model -enable all -o Outputs/Synthese-PSM_LARRA.dxf -# export model -enable all -o Outputs/Synthese-PSM_LARRA.kml +export model -enable all -o Outputs/Synthese-PSM_LARRA.kml # export model -enable all -o Outputs/Synthese-PSM_LARRA.3d # export model -enable all -o Outputs/Synthese-PSM_LARRA.plt @@ -413,8 +412,8 @@ export database -fmt sql -o Outputs/DB_Synthese-PSM_LARRA.sql # export map -proj plan -fmt esri -o Outputs/SHP/therion -layout my_layout -enc ASCII # Export des fichiers kml - # export map -proj plan -fmt kml -o Outputs/Synthese-PSM_LARRA.kml -layout layout-kml - # export model -fmt kml -o Outputs/Synthese-PSM_LARRA-model.kml -enable all - # export model -enable all -o Outputs/Synthese-PSM_LARRA-3D.kml - # export survey-list -location on -o Outputs/Synthese-PSM_LARRA-Surveys.html - # export cave-list -surveys off -location on -o Outputs/Synthese-PSM_LARRA-Cave-list.txt \ No newline at end of file +# export map -proj plan -fmt kml -o Outputs/Synthese-PSM_LARRA.kml -layout layout-kml +# export model -fmt kml -o Outputs/Synthese-PSM_LARRA-model.kml -enable all +# export model -enable all -o Outputs/Synthese-PSM_LARRA-3D.kml +export survey-list -location on -o Outputs/Synthese-PSM_LARRA-Surveys.html +export cave-list -surveys off -location on -o Outputs/Synthese-PSM_LARRA-Cave-list.txt \ No newline at end of file