Skip to content

Bump actions/setup-python from 4 to 5 #28

Bump actions/setup-python from 4 to 5

Bump actions/setup-python from 4 to 5 #28

name: Template Cleanup
on:
push:
branches:
- master
jobs:
template-cleanup:
permissions:
contents: write
name: Template Cleanup
runs-on: ubuntu-latest
if: github.event.repository.full_name != 'liplum/MindustryModTemplate'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Run Cleanup Script
env:
FULL_NAME: ${{ github.event.repository.full_name }}
run: |
if [ -f cleanup.py ]; then
python cleanup.py "$FULL_NAME"
else
rm .github/workflows/CleanUpTemplate.yml
fi
# Commit modified files
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Template cleanup"
git push