mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-16 15:00:15 +02:00
* feat: add auto archiving action --------- Co-authored-by: p.delpy@dkfz-heidelberg.de <p.delpy@dkfz-heidelberg.de> Co-authored-by: Martin Lablans <6804500+lablans@users.noreply.github.com>
27 lines
629 B
YAML
27 lines
629 B
YAML
name: Cleanup - Rename Inactive Branches
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * 0' # Runs every Sunday at midnight
|
|
|
|
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 }} |