From c304a638f4820fe7860ac82176eb777528752b3b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 1 May 2026 23:31:10 +0000 Subject: [PATCH 1/3] fix(maintenance): create tar archive in /tmp to prevent backup job failure Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/f2fba114-abbe-42c4-8023-e036d31ccb80 Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com> --- .github/workflows/maintenance.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml index dc6146bb..d58cbfb2 100644 --- a/.github/workflows/maintenance.yml +++ b/.github/workflows/maintenance.yml @@ -126,16 +126,17 @@ jobs: DATE=$(date +%Y-%m-%d) ARCHIVE_NAME="davidkrk-backup-${DATE}.tar.gz" - # Créer l'archive en excluant les dossiers inutiles - tar -czf "$ARCHIVE_NAME" \ + # Créer l'archive dans /tmp pour éviter "file changed as we read it" + # (tar modifie le répertoire courant en écrivant l'archive, ce qui cause une erreur) + tar -czf "/tmp/$ARCHIVE_NAME" \ --exclude='.git' \ --exclude='node_modules' \ --exclude='dist' \ --exclude='*.tar.gz' \ . - ARCHIVE_SIZE=$(du -sh "$ARCHIVE_NAME" | cut -f1) - echo "archive_name=$ARCHIVE_NAME" >> "$GITHUB_OUTPUT" + ARCHIVE_SIZE=$(du -sh "/tmp/$ARCHIVE_NAME" | cut -f1) + echo "archive_name=/tmp/$ARCHIVE_NAME" >> "$GITHUB_OUTPUT" echo "archive_size=$ARCHIVE_SIZE" >> "$GITHUB_OUTPUT" echo "date=$DATE" >> "$GITHUB_OUTPUT" echo "✅ Archive créée : $ARCHIVE_NAME ($ARCHIVE_SIZE)" From ba6bfb0d34309a524623cfbabc3ab04f7899398b Mon Sep 17 00:00:00 2001 From: David KRK <136035295+DavidKRK@users.noreply.github.com> Date: Sun, 10 May 2026 22:06:46 +0200 Subject: [PATCH 2/3] Potential fix for pull request finding Pull request Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/maintenance.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml index d58cbfb2..a82c58c3 100644 --- a/.github/workflows/maintenance.yml +++ b/.github/workflows/maintenance.yml @@ -127,7 +127,8 @@ jobs: ARCHIVE_NAME="davidkrk-backup-${DATE}.tar.gz" # Créer l'archive dans /tmp pour éviter "file changed as we read it" - # (tar modifie le répertoire courant en écrivant l'archive, ce qui cause une erreur) + # (si l'archive est écrite dans le répertoire courant, un nouveau fichier y est créé + # pendant que tar lit '.', ce qui peut déclencher cette erreur) tar -czf "/tmp/$ARCHIVE_NAME" \ --exclude='.git' \ --exclude='node_modules' \ From faf7a13a8e22810dfd976af53496d9aebd0c1f97 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 May 2026 04:02:34 +0000 Subject: [PATCH 3/3] refactor(maintenance): use ARCHIVE_PATH variable via RUNNER_TEMP for archive location Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/28d26abc-53c6-46d1-8b04-6b7006533e10 Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com> --- .github/workflows/maintenance.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml index a82c58c3..66f85897 100644 --- a/.github/workflows/maintenance.yml +++ b/.github/workflows/maintenance.yml @@ -125,19 +125,18 @@ jobs: run: | DATE=$(date +%Y-%m-%d) ARCHIVE_NAME="davidkrk-backup-${DATE}.tar.gz" + # Écrire l'archive hors du répertoire courant pour éviter "file changed as we read it" + ARCHIVE_PATH="${RUNNER_TEMP}/${ARCHIVE_NAME}" - # Créer l'archive dans /tmp pour éviter "file changed as we read it" - # (si l'archive est écrite dans le répertoire courant, un nouveau fichier y est créé - # pendant que tar lit '.', ce qui peut déclencher cette erreur) - tar -czf "/tmp/$ARCHIVE_NAME" \ + tar -czf "$ARCHIVE_PATH" \ --exclude='.git' \ --exclude='node_modules' \ --exclude='dist' \ --exclude='*.tar.gz' \ . - ARCHIVE_SIZE=$(du -sh "/tmp/$ARCHIVE_NAME" | cut -f1) - echo "archive_name=/tmp/$ARCHIVE_NAME" >> "$GITHUB_OUTPUT" + ARCHIVE_SIZE=$(du -sh "$ARCHIVE_PATH" | cut -f1) + echo "archive_name=$ARCHIVE_PATH" >> "$GITHUB_OUTPUT" echo "archive_size=$ARCHIVE_SIZE" >> "$GITHUB_OUTPUT" echo "date=$DATE" >> "$GITHUB_OUTPUT" echo "✅ Archive créée : $ARCHIVE_NAME ($ARCHIVE_SIZE)"