Cleanup #46
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Cleanup | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 4 1 * *" | |
- cron: "0 4 15 * *" | |
jobs: | |
branches: | |
name: Cleanup old branches | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run delete-old-branches-action | |
uses: beatlabs/delete-old-branches-action@v0.0.10 | |
with: | |
repo_token: ${{ github.token }} | |
date: '1 months ago' | |
dry_run: false | |
delete_tags: false | |
exclude_open_pr_branches: true | |
# code: | |
# name: Run cleanup script | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v3 | |
# - name: Install nix | |
# uses: ./.github/actions/install-nix | |
# - run: nix run github:viperML/dotfiles#dotfiles-tidy | |
# - run: nix run github:viperML/dotfiles#dotfiles-generate-flake | |
# - name: Create Pull Request | |
# uses: peter-evans/create-pull-request@v5 | |
# with: | |
# title: 'ci: tidy' | |
# commit-message: | | |
# Cleanup | |
# Co-authored-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
# author: GitHub <noreply@github.com> | |
# branch: cleanup-flake | |
# branch-suffix: timestamp | |
# delete-branch: true |