-
-
Notifications
You must be signed in to change notification settings - Fork 7
30 lines (26 loc) · 929 Bytes
/
check.yml
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
30
name: Check
on:
push:
jobs:
check-files:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Check if required files exist or not
id: check_files
run: |
missing_files=()
[ ! -f tk.py ] && missing_files+=("tk.py")
[ ! -f README.md ] && missing_files+=("README.md")
[ ! -f tkforge.py ] && missing_files+=("tkforge.py")
[ ! -f gui.py ] && missing_files+=("gui.py")
[ ! -f CONTRIBUTING.md ] && missing_files+=("CONTRIBUTING.md")
[ ! -f requirements.txt ] && missing_files+=("requirements.txt")
[ ! -f CODE_OF_CONDUCT.md ] && missing_files+=("CODE_OF_CONDUCT.md")
if [ ${#missing_files[@]} -ne 0 ]; then
echo "❌ Missing files: ${missing_files[@]}"
exit 1
else
echo "✅ All required files exist."
fi