NTP-1234 | GHA | Delete Stale Branches (#14483)
This commit is contained in:
23
.github/workflows/delete-stale-branches.yml
vendored
Normal file
23
.github/workflows/delete-stale-branches.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user