fix: replace actions/setup-python with direct apt-get to prevent container leak
This commit is contained in:
parent
d313a4895f
commit
7f3328a7fe
1 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue