site/.github/workflows/lint.yml
g_it a22b3f2e04
Some checks are pending
lint / runner / vale (push) Waiting to run
Runner debug.
2026-04-07 23:35:23 +02:00

51 lines
2 KiB
YAML
Executable file

name: lint
on:
push:
branches:
- main
jobs:
vale:
name: runner / vale
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
with:
repository: "g_it/site"
# ❌ Remove this line after debugging - it's GitHub-specific and causes issues
# github-server-url: "https://gugulet.hu/technical/git"
# 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 ""
echo "## GIT CONFIG"
git config --list | grep url
- 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: /