name: lint on: push: branches: - main jobs: vale: name: runner / vale runs-on: ubuntu-latest steps: # DEBUG SECTION - Add these steps AFTER checkout but BEFORE vale-action - name: 🔍 Debug environment variables run: | echo "## FORGEJO ENVIRONMENT VARIABLES" echo "FORGEJO_SERVER_URL: $FORGEJO_SERVER_URL" echo "FORGEJO_REPOSITORY: $FORGEJO_REPOSITORY" echo "FORGEJO_REPOSITORY_OWNER: $FORGEJO_REPOSITORY_OWNER" echo "FORGEJO_REPOSITORY_NAME: $FORGEJO_REPOSITORY_NAME" echo "FORGEJO_WORKSPACE: $FORGEJO_WORKSPACE" echo "" echo "## GITHUB-COMPATIBLE VARIABLES" echo "GITHUB_SERVER_URL: $GITHUB_SERVER_URL" echo "GITHUB_REPOSITORY: $GITHUB_REPOSITORY" echo "" echo "## GENERATED REPO URL" echo "Repository URL: $FORGEJO_SERVER_URL/$FORGEJO_REPOSITORY.git" echo "" - name: Checkout repository run: | git clone --depth 1 https://token:${{ secrets.ACTIONS_TOKEN }}@gugulet.hu/technical/git/g_it/site.git . cd site || true - name: 📁 Check working directory structure run: | echo "## CURRENT DIRECTORY CONTENTS" pwd ls -la echo "" echo "## GIT REMOTE CONFIGURATION" git remote -v # Original Vale action step # - uses: https://github.com/vale-cli/vale-action@v2 # with: # fail_on_error: true # files: . - name: Install and run Vale run: | wget -qO- https://github.com/errata-ai/vale/releases/download/v3.14.1/vale_3.14.1_Linux_64-bit.tar.gz | tar xz -C /tmp export PATH="/tmp:$PATH" echo "=== Where are we? ===" pwd echo "" echo "=== Content directory exists? ===" ls -la /workspace/g_it/site/content/ 2>/dev/null || echo "NOT FOUND at absolute path" ls -la content/ 2>/dev/null || echo "NOT FOUND at relative path" echo "" echo "=== Find all markdown files ===" find /workspace/g_it/site -name "*.md" -type f 2>/dev/null | head -20 echo "" echo "=== Sync ===" vale sync echo "=== Vale version & debug single file ===" vale --version vale --debug /workspace/g_it/site/content/test.md || true echo "=== Vale line output for one file ===" vale --output=line /workspace/g_it/site/content/index.md || true echo "=== Vale JSON output for one file ===" vale --output=JSON /workspace/g_it/site/content/index.md || true echo "" echo "=== Run Vale with explicit path ===" vale --output=line /workspace/g_it/site/content/ || true echo "" echo "=== Or try with glob pattern ===" vale --output=line "/workspace/g_it/site/content/**/*.md" 2>/dev/null || vale --output=line "content/**/*.md" 2>/dev/null || true