Skip to content

Cleanup Merged Branches #2

Cleanup Merged Branches

Cleanup Merged Branches #2

name: Cleanup Merged Branches
on:
schedule:
- cron: '0 0 * * 0' # Runs every Sunday at midnight
workflow_dispatch:
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install requests
- name: Run cleanup script
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
run: python .github/scripts/cleanup_merged_branches.py