Update .gitea/actions/generate-docs/action.yml

This commit is contained in:
2025-11-23 15:20:05 +01:00
parent ca0d39682f
commit 58ef970b4b

View File

@@ -24,6 +24,13 @@ runs:
echo "Found $total_files markdown files to check"
echo ""
# Get repository info from input at the start
REPO_OWNER="${{ inputs.user_repository }}"
REPO_OWNER="${REPO_OWNER%/*}"
REPO_NAME="${{ inputs.user_repository }}"
REPO_NAME="${REPO_NAME#*/}"
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "main")
has_errors=0
file_index=1
@@ -70,15 +77,6 @@ runs:
# Determine link category and validation status
status="✓"
# Get repository info from input
if [ -z "$REPO_OWNER" ]; then
REPO_OWNER="${{ inputs.user_repository }}"
REPO_OWNER="${REPO_OWNER%/*}"
REPO_NAME="${{ inputs.user_repository }}"
REPO_NAME="${REPO_NAME#*/}"
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "main")
fi
# Check if it's an external URL
if [[ "$decoded_link" =~ ^https?:// ]]; then
# Replace git.sulej.net with internal gitea URL for checking