Create overview_template.md #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Find Class Ruining Issues | |
on: | |
push: | |
branches: | |
- v2.0.0-DEV | |
jobs: | |
cleanup: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # 🔑 Needed to allow pushing changes | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
# Skip installing dependencies if no requirements.txt is found | |
- name: Install dependencies (if available) | |
run: | | |
if [ -f "requirements.txt" ]; then | |
pip install -r requirements.txt | |
else | |
echo "No requirements.txt found, skipping installation." | |
fi | |
- name: Run cleanup script | |
run: python ./scripts/LocateIssues.py | |
- name: Configure Git identity | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Commit changes | |
run: | | |
git add -A | |
if git diff --cached --quiet; then | |
echo "No changes to commit" | |
else | |
git commit -m "Auto cleanup commit" | |
git push | |
fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |