-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate.flow.yaml
More file actions
29 lines (26 loc) · 893 Bytes
/
validate.flow.yaml
File metadata and controls
29 lines (26 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# yaml-language-server: $schema=https://flowexec.io/schemas/flowfile_schema.json
executables:
- verb: validate
description: Generates, formats, and checks that the example files are up to date.
exec:
dir: //
cmd: |
set -e
echo "Building flow files examples..."
go run cmd/builder/*.go
if command -v yamlfmt &> /dev/null; then
echo "Formatting generated flow files..."
yamlfmt .
else
echo "yamlfmt not found, skipping formatting"
fi
echo "Checking for uncommitted generated files..."
if [ -n "$(git status --porcelain)" ]; then
echo "❌ Generated files have not been commited!"
echo ""
echo "Uncommitted changes:"
git status --porcelain
exit 1
else
echo "✅ All generated files are up to date"
fi