mirror of
https://github.com/usetrmnl/tailor.git
synced 2026-04-29 13:44:32 -07:00
fix workflow
This commit is contained in:
@@ -11,17 +11,25 @@ jobs:
|
||||
process-images:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # Needed to push the GALLERY.md update
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install ImageMagick
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y imagemagick
|
||||
|
||||
- name: Validate PNG dimensions
|
||||
run: |
|
||||
# Find all pngs in the 800x480 directory
|
||||
FILES=$(find screens/800x480 -name "*.png")
|
||||
for FILE in $FILES; do
|
||||
echo "Validating $FILE"
|
||||
# Extract dimensions
|
||||
DIMENSIONS=$(identify -format "%wx%h" "$FILE")
|
||||
if [ "$DIMENSIONS" != "800x480" ]; then
|
||||
echo "::error file=$FILE::Invalid dimensions: $DIMENSIONS. Must be 800x480."
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import urllib.parse
|
||||
# Configuration
|
||||
BASE_DIR = "screens/800x480"
|
||||
OUTPUT_FILE = "GALLERY_800x480.md"
|
||||
REPO_URL = "https://github.com/usetrmnl/trmnl-designs/raw/main"
|
||||
REPO_URL = "https://github.com/usetrmnl/tailor/raw/main"
|
||||
|
||||
def generate_gallery():
|
||||
# Adjusted title and back-link reference for the specific size
|
||||
|
||||
Reference in New Issue
Block a user