]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
.github: NightlyAdmin now calls external CloseStaleIssuesAndPRs
authorGeorge Joseph <gjoseph@sangoma.com>
Wed, 20 Mar 2024 19:07:44 +0000 (13:07 -0600)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 14 Nov 2024 20:01:34 +0000 (20:01 +0000)
(cherry picked from commit ce322ad16a793a9a51650c16a70eef694669a2c4)

.github/workflows/NightlyAdmin.yml

index f190671ee8c7317a0e5eddc5fc3c772e7fe513ea..5a7b8f35cd5576ea68a0fb4adcb02d278871bc5f 100644 (file)
@@ -1,7 +1,8 @@
-name: Nightly Admin
+name: NightlyAdmin
 on:
   schedule:
     - cron: '30 1 * * *'
+  workflow_dispatch:
 
 env:
   ASTERISK_REPO:     ${{ github.repository }}
@@ -13,16 +14,6 @@ env:
 
 jobs:
   CloseStaleIssues:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Close Stale Issues
-        uses: actions/stale@v7
-        with:
-          stale-issue-message: 'This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 14 days.'
-          stale-issue-label: stale
-          close-issue-message: 'This issue was closed because it has been stalled for 14 days with no activity.'
-          days-before-stale: 7
-          days-before-close: 14
-          days-before-pr-close: -1
-          only-labels: triage,feedback-required
-
+    uses: asterisk/asterisk-ci-actions/.github/workflows/CloseStaleIssuesAndPRs.yml@main
+    secrets:
+      ASTERISKTEAM_PAT: ${{ secrets.ASTERISKTEAM_PAT }}
\ No newline at end of file