Commit 63d052f
Fix: Skip JSON file existence checks in CI
The verification_json validation was failing in CI because the output/
directory (containing data JSON files) is gitignored and not available
during CI builds.
This fix detects CI environments and skips file existence checks while
still validating that all articles declare verification_json in frontmatter.
The data files are validated locally before commit, and CI trusts that
validation was done. This maintains the audit trail (frontmatter points
to the JSON that was used) without requiring data files in the repo.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0eaa165 commit 63d052f
1 file changed
Lines changed: 21 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
| |||
103 | 112 | | |
104 | 113 | | |
105 | 114 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
110 | 122 | | |
111 | 123 | | |
112 | 124 | | |
| |||
142 | 154 | | |
143 | 155 | | |
144 | 156 | | |
145 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
146 | 162 | | |
147 | 163 | | |
148 | 164 | | |
| |||
0 commit comments