From 08b7f0518e4ec1e6f5315df3572d3f3b7a5ede14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Mon, 27 Oct 2025 17:33:28 +0100 Subject: [PATCH 1/2] CI: Open issue automatically on nightly failure --- .github/workflows/ci_cd.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index aa7ef0d52..f2e4101c6 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -119,6 +119,23 @@ jobs: path: doc/_build/latex retention-days: 7 + - name: Create issue on documentation build failure + if: failure() && github.event_name == 'schedule' + run: | + # Utiliser les variables GitHub pour éviter les problèmes d'échappement + TIMESTAMP=$(date -u +"%Y-%m-%d %H:%M UTC") + + curl -X POST \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Content-Type: application/json" \ + https://api.github.com/repos/${{ github.repository }}/issues \ + -d '{ + "title": "Documentation build failure on '"nightly"' - '"$TIMESTAMP"'", + "body": "## Documentation Build Failed\n\n**Run:** [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})\n**Commit:** [${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})\n**Branch:** `${{ github.ref_name }}`\n**Trigger:** ${{ github.event_name }}\n", + "labels": ["documentation", "bug"] + }' + deploy-doc: name: Upload documentation if: contains(github.ref, 'refs/heads/main') From fa6b578f2af76300ce4ae74a68c53afb8780a907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= <146729917+SMoraisAnsys@users.noreply.github.com> Date: Mon, 12 Jan 2026 15:53:11 +0100 Subject: [PATCH 2/2] Update .github/workflows/ci_cd.yml --- .github/workflows/ci_cd.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index fb46d83c6..62fe805ac 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -147,7 +147,6 @@ jobs: - name: Create issue on documentation build failure if: failure() && github.event_name == 'schedule' run: | - # Utiliser les variables GitHub pour éviter les problèmes d'échappement TIMESTAMP=$(date -u +"%Y-%m-%d %H:%M UTC") curl -X POST \