From e8a19a562d8bee6840187478845a508bae3e0cf7 Mon Sep 17 00:00:00 2001 From: Numan Karaaslan Date: Fri, 24 Jul 2026 12:05:05 +0300 Subject: [PATCH] feat: Trim sync-report artifacts with 7-day retention and filter out the kpi json file --- action.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8eb2314..1906415 100644 --- a/action.yml +++ b/action.yml @@ -217,8 +217,20 @@ runs: - name: Upload sync report if: always() + # A failed/blocked upload (e.g. GitHub Actions storage quota full) must NOT fail an + # otherwise-successful sync — the KG is already written; the artifact is only a receipt. + continue-on-error: true uses: actions/upload-artifact@v4 with: name: graph-sync-report-${{ inputs.profile }} - path: ${{ steps.run_worai.outputs.output_dir }}/ + # Keep receipts only a week (was the 90-day default) to stop storage from filling. + retention-days: 7 + # Upload only the small human-readable reports. Deliberately excludes the large + # graph-kpis/graph_kpis.json (per-URL SHACL/KPI details) — the summary + # graph_kpi_report.md is kept instead. This is what keeps the storage bill flat. + path: | + ${{ steps.run_worai.outputs.output_dir }}/graph_sync_report.md + ${{ steps.run_worai.outputs.output_dir }}/graph_sync_failures.csv + ${{ steps.run_worai.outputs.output_dir }}/memory_report.md + ${{ steps.run_worai.outputs.output_dir }}/graph-kpis/graph_kpi_report.md if-no-files-found: ignore