24 lines
648 B
YAML
24 lines
648 B
YAML
name: Delete Stale Branches
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "30 4 * * TUE"
|
|
|
|
jobs:
|
|
delete-stale-branches:
|
|
runs-on: [ default ]
|
|
steps:
|
|
- name: Create GitHub App Token
|
|
uses: navi-synced-actions/actions-create-github-app-token@v1
|
|
id: get-token
|
|
with:
|
|
private-key: ${{ secrets.GH_APP_NAVI_ANDROID_PEM }}
|
|
app-id: ${{ secrets.GH_APP_NAVI_ANDROID_ID }}
|
|
- name: Delete Stale Branches
|
|
uses: navi-synced-actions/balvajs-delete-stale-branches@v2
|
|
with:
|
|
token: ${{ steps.get-token.outputs.token }}
|
|
days-to-delete: 180
|
|
dry-run: false
|