Skip to content

Commit 2b02357

Browse files
chore: add gitHub actions workflow to validate pr's
1 parent 2acefdd commit 2b02357

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/validate.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Validate PR
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
check-files:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Check for unwanted files
13+
run: |
14+
git diff --name-only origin/main | grep -E '(^\.dart_tool/|pubspec.lock)' && \
15+
echo "❌ Unwanted file changes detected. Please remove pubspec.lock or .dart_tool changes." && exit 1 || \
16+
echo "✅ No unwanted file changes."

0 commit comments

Comments
 (0)