feat: add auto archiving action #9
Workflow file for this run
This file contains 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: Cleanup - Rename Inactive Branches | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # Runs every Sunday at midnight | |
#todo delete; only trigger for testing | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
archive-stale-branches: | |
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 Libraries | |
run: pip install requests | |
- name: Run Script to Rename Inactive Branches | |
run: | | |
python .github/scripts/rename_inactive_branches.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |