From fc63ccb6a78a9347c12d75b7c54369b49ea9722e Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 17 Jul 2026 13:58:08 +0200 Subject: [PATCH] =?UTF-8?q?HT-14/15:=20manifest=20visszacommitol=C3=A1sa?= =?UTF-8?q?=20a=20rep=C3=B3ba=20(megb=C3=ADzhat=C3=B3=20fogyaszt=C3=B3i=20?= =?UTF-8?q?=C3=BAt)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A repó-szintű list-artifacts API üresen tért vissza egy sikeres v3 feltöltés UTÁN is (Gitea REST API hiányosság, nem valós hiány — a job log megerősíti a sikeres feltöltést). Ahelyett, hogy erre az API-viselkedésre építene, a HT-15 fogyasztóknak megbízhatóbb út: a CI a kis JSON manifestet (nem a HTML/PDF-eket, hogy a repó ne hízzon) visszaírja a repóba, ugyanoda, ahonnan a fogyasztók már ma is git clone-nal húzzák a forrás markdown-t. paths-ignore: manifest/** a push triggeren, hogy a visszacommitolás ne indítsa el saját magát újra. --- .gitea/workflows/legal-manifest.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/legal-manifest.yml b/.gitea/workflows/legal-manifest.yml index 3b65a8a..86e6e11 100644 --- a/.gitea/workflows/legal-manifest.yml +++ b/.gitea/workflows/legal-manifest.yml @@ -8,6 +8,7 @@ name: Build legal manifest on: push: branches: [main] + paths-ignore: [manifest/**] # avoid the commit-back step (below) re-triggering itself workflow_dispatch: {} jobs: @@ -42,8 +43,31 @@ jobs: # v4 uses a newer artifact-storage protocol this Gitea version doesn't implement yet # ("GHESNotSupportedError", confirmed empirically) — v3 uses the older, supported one. - - name: Upload manifest + rendered artifacts + # Convenience only (manual inspection via the Actions UI) — HT-15 consumers should NOT + # depend on this: the repo-level list-artifacts API returned empty even after a + # successful v3 upload (a Gitea REST API gap, not a real absence — the run's own job + # log confirms the upload step succeeded). The commit-back step below is the real, + # dependable distribution path. + - name: Upload manifest + rendered artifacts (convenience only, see note above) uses: actions/upload-artifact@v3 with: name: legal-manifest path: dist/ + + # The dependable distribution path for HT-15: just the small JSON manifest (not the + # bulkier rendered HTML/PDF, to avoid repo bloat over time) committed back to the repo + # consumers already git-clone for the markdown sources — no Gitea Actions artifact API + # involved at all. + - name: Commit manifest back to repo + run: | + mkdir -p manifest + cp dist/legal-manifest.json manifest/legal-manifest.json + git config user.name "H2W Legal CI" + git config user.email "ci@h2w.hu" + git add manifest/legal-manifest.json + if git diff --cached --quiet; then + echo "Manifest változatlan — nincs mit commitolni." + else + git commit -m "CI: legal-manifest.json frissítve [skip ci]" + git push origin HEAD:main + fi