We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 23bc058 + 0128504 commit 0e45e36Copy full SHA for 0e45e36
1 file changed
.github/workflows/validate-main.yml
@@ -0,0 +1,32 @@
1
+name: Validate main branch stays clean
2
+on:
3
+ push:
4
+ branches: [main]
5
+ paths:
6
+ - 'data/**'
7
+ - 'gitforge.config.json'
8
+ pull_request:
9
10
11
12
13
+
14
+jobs:
15
+ validate:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
20
+ - name: Ensure data files are empty templates
21
+ run: |
22
+ fail=0
23
+ for file in data/blogs.json data/posts.json data/projects.json data/videos.json; do
24
+ content=$(cat "$file" | tr -d '[:space:]')
25
+ if [ "$content" != "[]" ]; then
26
+ echo "❌ $file must be [] on main (personal data belongs on the web branch)"
27
+ fail=1
28
+ else
29
+ echo "✅ $file is clean"
30
+ fi
31
+ done
32
+ exit $fail
0 commit comments