Skip to content

Cleanup Merged Pull Requests #2122

Cleanup Merged Pull Requests

Cleanup Merged Pull Requests #2122

name: Cleanup Merged Pull Requests
on:
schedule:
- cron: 0 0/3 * * *
workflow_dispatch:
permissions:
contents: write
jobs:
cleanup:
name: Branch Cleanup
concurrency: komac-cleanup
runs-on: ubuntu-latest
steps:
- name: Configure Git
shell: bash
run: |
# This HAVE TO configure as myself.
git config --global user.name Dragon1573
git config --global user.email 49941141+Dragon1573@noreply.users.github.com
- name: Remove merged pull requests
uses: michidk/run-komac@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'clean -a'
custom-fork-owner: Dragon1573
custom-tool: WinGet-Subscriber
custom-tool-url: https://github.com/Dragon1573/winget-pkgs/tree/bot