diff --git a/.forgejo/workflows/regenerate-index.yml b/.forgejo/workflows/regenerate-index.yml index 41ad4a4..c988f40 100644 --- a/.forgejo/workflows/regenerate-index.yml +++ b/.forgejo/workflows/regenerate-index.yml @@ -19,17 +19,15 @@ jobs: fetch-depth: 2 - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' + run: | + apt-get update -qq && apt-get install -y -qq python3 > /dev/null + ln -sf /usr/bin/python3 /usr/bin/python - name: Check if markdown files changed id: check_changes run: | - # Get list of changed files CHANGED_FILES=$(git diff --name-only HEAD^ HEAD) - # Check if any .md files changed (excluding .docs-index.json) if echo "$CHANGED_FILES" | grep -q '\.md$'; then echo "md_changed=true" >> $GITHUB_OUTPUT else