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"