NTP-1234 | GHA | Delete Stale Branches (#14483)

This commit is contained in:
Shivam Goyal
2025-01-13 16:31:00 +05:30
committed by GitHub
parent 95bea87e5c
commit 9fc9ef4993

View File

@@ -0,0 +1,23 @@
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