fix workflow

This commit is contained in:
Mario Lurig
2026-02-16 18:36:29 -07:00
parent 1a660ce756
commit 60317b76fd
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -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
View File
@@ -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