fix: replace actions/setup-python with direct apt-get to prevent container leak

This commit is contained in:
Joey King 2026-02-25 03:42:19 +00:00
parent d313a4895f
commit 7f3328a7fe

View file

@ -19,17 +19,15 @@ jobs:
fetch-depth: 2 fetch-depth: 2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 run: |
with: apt-get update -qq && apt-get install -y -qq python3 > /dev/null
python-version: '3.11' ln -sf /usr/bin/python3 /usr/bin/python
- name: Check if markdown files changed - name: Check if markdown files changed
id: check_changes id: check_changes
run: | run: |
# Get list of changed files
CHANGED_FILES=$(git diff --name-only HEAD^ HEAD) 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 if echo "$CHANGED_FILES" | grep -q '\.md$'; then
echo "md_changed=true" >> $GITHUB_OUTPUT echo "md_changed=true" >> $GITHUB_OUTPUT
else else