#!/bin/bash

echo "=== Forgejo Workflow Status Checker ==="
echo ""

echo "1. Check if workflow is running..."
echo "   Visit: https://git.raines.xyz/robojerk/libostree-dev/actions"
echo ""

echo "2. Check latest workflow run logs..."
echo "   Look for the most recent 'Build libostree Backport' run"
echo "   Click on it to see the detailed logs"
echo ""

echo "3. Look for these specific sections in the logs:"
echo "   - 'Test API endpoints' step"
echo "   - 'Upload to Generic Package Registry' step"
echo "   - Any error messages or HTTP status codes"
echo ""

echo "4. Common issues to check:"
echo "   - Authentication errors (401, 403)"
echo "   - Endpoint not found (404)"
echo "   - Network connectivity issues"
echo ""

echo "5. If you see errors, please share:"
echo "   - The exact error messages"
echo "   - HTTP status codes"
echo "   - Any API response content"
echo ""

echo "=== Quick Commands ==="
echo "To check if Forgejo is running:"
echo "docker ps | grep forgejo"
echo ""
echo "To check Forgejo logs:"
echo "docker logs forgejo"
echo ""
echo "To restart Forgejo with new config:"
echo "docker-compose down && docker-compose up -d" 