From 68adfe7e01da68868ba9dbe3483fbf29b5ffb9ac Mon Sep 17 00:00:00 2001 From: Mathias Date: Sun, 19 Jul 2026 16:01:32 +0200 Subject: [PATCH] fix(ci): correct CD guard so real jobs run (F8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The guard grepped for the substituted module path, which always matches a generated repo's own go.mod → is_template=true → check/build/deploy all skipped (fake-green CI, nothing ever built/deployed). Detect leftover __PLACEHOLDER__ tokens instead — verified: substituted repo runs CI, raw template skips. Template-wide fix: template-go-web#9. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/cd.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/cd.yml b/.gitea/workflows/cd.yml index 61911f3..3882d02 100644 --- a/.gitea/workflows/cd.yml +++ b/.gitea/workflows/cd.yml @@ -19,8 +19,12 @@ jobs: steps: - uses: actions/checkout@v4 - id: detect + # Detect an UNSUBSTITUTED template by the leftover __PLACEHOLDER__ tokens. + # Must not grep for the substituted module path — that pattern is itself + # substituted at generate time, so it would match every real child repo's + # own go.mod and skip all CI forever (template-go-web bug, see repo #). run: | - if grep -q 'git.d-ma.be/mathias/cad-atlas' go.mod; then + if grep -qE '__[A-Z_]+__' go.mod; then echo "is_template=true" >> "$GITHUB_OUTPUT" else echo "is_template=false" >> "$GITHUB_OUTPUT"