Skip to content

Commit 2218b5b

Browse files
committed
Automatically check fastlane description for length
1 parent 85423c6 commit 2218b5b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/fastlane.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Fastlane checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'master'
7+
- 'release/*'
8+
- 'hotfix/*'
9+
10+
jobs:
11+
check_description_length:
12+
name: Check Fastlane description is at most 500 chars
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Print all file sizes for debugging
17+
run: wc -m fastlane/metadata/android/*/full_description.txt
18+
- name: Check all files have at most 500 characters
19+
run: |
20+
for s in fastlane/metadata/android/*/full_description.txt; do
21+
size=($(wc -m "$s"));
22+
if [ ${size[0]} -gt 500 ];
23+
then
24+
echo "File ${size[1]} is longer than 500 characters (is ${size[0]})";
25+
exit 1;
26+
fi
27+
done
28+
29+

0 commit comments

Comments
 (0)