Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: update lint code

Prateek Sunalb3db10201b7c
diff --git a/.github/workflows/auth-lint.yml b/.github/workflows/auth-lint.yml
index 8091986214..e48130edda 100644
--- a/.github/workflows/auth-lint.yml
+++ b/.github/workflows/auth-lint.yml
@@ -49,6 +49,18 @@ jobs:
- name: Verify custom icon JSON
run: cat assets/custom-icons/_data/custom-icons.json | jq empty
+ - name: Verify custom icon hex codes
+ run: |
+ jq -r '.icons[] | select(.hex != null) | .hex' assets/custom-icons/_data/custom-icons.json | while read -r hex; do
+ if [[ -z "$hex" ]]; then
+ continue
+ fi
+ if [[ ! "$hex" =~ ^[0-9a-fA-F]{6}$ ]]; then
+ echo "Invalid hex color '$hex'. Must be exactly 6 hexadecimal characters."
+ exit 1
+ fi
+ done
+
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
uses: subosito/flutter-action@v2
with: